Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Awilum committed Dec 26, 2021
1 parent 56d12f0 commit fea40c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/MacroableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ protected function methodThree()
});

test('test flush macros', function (): void {
TestMacroable::macro('flushMethod', function () {
$this->TestMacroable::macro('flushMethod', function () {
return 'flushMethod';
});

$instance = new TestMacroable;
$instance = new $this->TestMacroable;

$this->assertSame('flushMethod', $instance->flushMethod());

TestMacroable::flushMacros();
$this->TestMacroable::flushMacros();

$this->expectException(BadMethodCallException::class);

Expand Down

0 comments on commit fea40c0

Please sign in to comment.