From 9a0cfaf33940af11471c89147c56735ad721d494 Mon Sep 17 00:00:00 2001 From: Tom Witkowski Date: Sun, 21 Jun 2020 18:39:47 +0200 Subject: [PATCH] use shorter beforeEach chain syntax --- tests/Features/Macro.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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();