diff --git a/tests/Features/Macro.php b/tests/Features/Macro.php index c90a3ea3..fa9f63ee 100644 --- a/tests/Features/Macro.php +++ b/tests/Features/Macro.php @@ -5,10 +5,8 @@ use PHPUnit\Framework\TestCase; uses(Macroable::class); -beforeEach(function () { - $this->macro('bar', function () { - assertInstanceOf(TestCase::class, $this); - }); +beforeEach()->macro('bar', function () { + assertInstanceOf(TestCase::class, $this); }); it('can call chained macro method')->bar();