Files
pest/tests/Features/Macro.php
2020-06-21 14:02:56 +02:00

13 lines
246 B
PHP

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