{"image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/p/ponkotsu0605/20220523/20220523175530.png","blog_url":"https://www.pnkts.net/","categories":["php"],"width":"100%","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.pnkts.net%2F2022%2F05%2F23%2Fmock-static-method\" title=\"\u3010Mockery\u3011\u30c6\u30b9\u30c8\u3067static\u30e1\u30bd\u30c3\u30c9\u3092\u30e2\u30c3\u30af\u3059\u308b\u3084\u308a\u65b9\u3010PHP\u3011 - \u30dd\u30f3\u30b3\u30c4\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u3054\u3058\u3083\u3063\u307a\u958b\u767a\u65e5\u8a18\u3002\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","provider_url":"https://hatena.blog","description":"PHP\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u3066\u3001\u30e2\u30c3\u30af\u3057\u305f\u3044\u5834\u5408\u306bMockery\u306f\u3088\u304f\u4f7f\u308f\u308c\u308b\u30c4\u30fc\u30eb\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002PHP\u3067\u6709\u540d\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306eLaravel\u3067\u3082\u4f7f\u308f\u308c\u3066\u307e\u3059\u306d\u3002 github.com \u4eca\u56de\u306f\u305d\u306eMockery\u3067static\u30e1\u30bd\u30c3\u30c9\u3092\u30e2\u30c3\u30af\u3059\u308b\u3068\u304d\u306b\u3061\u3087\u3063\u3068\u8e93\u3044\u305f\u306e\u3067\u3001\u8a18\u4e8b\u306b\u30e1\u30e2\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u74b0\u5883 static\u30e1\u30bd\u30c3\u30c9\u3092\u30e2\u30c3\u30af\u3059\u308b \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u78ba\u8a8d\u3059\u308b \u5b9f\u969b\u306b\u66f8\u3044\u3066\u307f\u308b \u300cMockery\\Exception\\RuntimeException: Could not load mock Symfony\\Component\\Yaml\\Yaml, class already exists\u300d\u30a8\u30e9\u2026","height":"190","author_name":"ponkotsu0605","blog_title":"\u30dd\u30f3\u30b3\u30c4\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u3054\u3058\u3083\u3063\u307a\u958b\u767a\u65e5\u8a18\u3002","url":"https://www.pnkts.net/2022/05/23/mock-static-method","published":"2022-05-23 17:55:51","provider_name":"Hatena Blog","title":"\u3010Mockery\u3011\u30c6\u30b9\u30c8\u3067static\u30e1\u30bd\u30c3\u30c9\u3092\u30e2\u30c3\u30af\u3059\u308b\u3084\u308a\u65b9\u3010PHP\u3011","author_url":"https://blog.hatena.ne.jp/ponkotsu0605/"}