diff --git a/tests/.snapshots/success.txt b/tests/.snapshots/success.txt index 1671b70b..6c2d741e 100644 --- a/tests/.snapshots/success.txt +++ b/tests/.snapshots/success.txt @@ -67,6 +67,9 @@ ✓ it is a test ✓ it is a higher order message test + PASS Tests\Features\Macro + ✓ it can call chained macro method + PASS Tests\Features\Mocks ✓ it has bar @@ -151,5 +154,5 @@ WARN Tests\Visual\Success s visual snapshot of test suite on success - Tests: 6 skipped, 86 passed - Time: 3.58s + Tests: 6 skipped, 87 passed + Time: 3.60s diff --git a/tests/Features/Macro.php b/tests/Features/Macro.php new file mode 100644 index 00000000..7ba8c127 --- /dev/null +++ b/tests/Features/Macro.php @@ -0,0 +1,12 @@ +macro('bar', function () { + assertInstanceOf(TestCase::class, $this); + + return $this; +})->bar();