mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
use shorter beforeEach chain syntax
This commit is contained in:
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user