fix tests

This commit is contained in:
Fabio Ivona
2022-08-26 11:38:36 +02:00
parent a4ec4b2841
commit 429660fe57

View File

@ -38,9 +38,8 @@ it('allows to call underlying protected/private methods', function () {
});
it('throws error if method do not exist', function () {
$user = new User();
$user->foo();
})->throws(Error::class, 'Call to undefined method User::foo()');
test()->foo();
})->throws(\ReflectionException::class, 'Call to undefined method PHPUnit\Framework\TestCase::foo()');
it('can forward unexpected calls to any global function')->_assertThat();