mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
use shorter beforeEach chain syntax
This commit is contained in:
@ -5,10 +5,8 @@ use PHPUnit\Framework\TestCase;
|
|||||||
|
|
||||||
uses(Macroable::class);
|
uses(Macroable::class);
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach()->macro('bar', function () {
|
||||||
$this->macro('bar', function () {
|
assertInstanceOf(TestCase::class, $this);
|
||||||
assertInstanceOf(TestCase::class, $this);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('can call chained macro method')->bar();
|
it('can call chained macro method')->bar();
|
||||||
|
|||||||
Reference in New Issue
Block a user