mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
13 lines
246 B
PHP
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();
|