{"author_name":"kojirooooocks","published":"2025-03-23 03:00:00","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","categories":[],"author_url":"https://blog.hatena.ne.jp/kojirooooocks/","version":"1.0","url":"https://kojirooooocks.hatenablog.com/entry/2025/03/23/030000","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkojirooooocks.hatenablog.com%2Fentry%2F2025%2F03%2F23%2F030000\" title=\"phpunit\u3067static method\u306emock\u306f\u3058\u3081\u3066\u4f7f\u3063\u305f - \u3082\u304c\u304d\u7cfb\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u65e5\u5e38\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"phpunit\u3067static method\u306emock\u306f\u3058\u3081\u3066\u4f7f\u3063\u305f","height":"190","image_url":null,"type":"rich","blog_title":"\u3082\u304c\u304d\u7cfb\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u65e5\u5e38","blog_url":"https://kojirooooocks.hatenablog.com/","description":"\u306f\u3058\u3081\u306b \u3053\u3093\u3070\u3093\u306f\u3002 \u4eca\u65e5laravel\u3067\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u3066static method\u306emock\u3092\u3057\u305f\u3044\u5834\u9762\u304c\u3042\u3063\u3066\u521d\u3081\u3066\u77e5\u3063\u305f\u306e\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u8a18\u9332\u3057\u307e\u3059\u3002 \u672c\u984c \u30ed\u30b8\u30c3\u30af\u30b3\u30fc\u30c9 <?php use Illuminate\\Support\\Facades\\Cookie; class ExampleLogic { public function __invoke(): int { Cookie::unqueue('test'); return 1; } } \u30c6\u30b9\u30c8\u30b3\u30fc\u30c9 <?php use Tests\\TestCase; use Illuminate\\Support\\Facades\u2026","width":"100%"}