use shorter beforeEach chain syntax

This commit is contained in:
Tom Witkowski
2020-06-21 18:39:47 +02:00
parent 321b3e8df3
commit 9a0cfaf339

View File

@ -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();