mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 02:07:23 +01:00
add test for new macro behavior
This commit is contained in:
12
tests/Features/Macro.php
Normal file
12
tests/Features/Macro.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Traits\Macroable;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
uses(Macroable::class);
|
||||
|
||||
it('can call chained macro method')->macro('bar', function () {
|
||||
assertInstanceOf(TestCase::class, $this);
|
||||
|
||||
return $this;
|
||||
})->bar();
|
||||
Reference in New Issue
Block a user