mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 02:37:22 +01:00
fix tests
This commit is contained in:
@ -38,9 +38,8 @@ it('allows to call underlying protected/private methods', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('throws error if method do not exist', function () {
|
it('throws error if method do not exist', function () {
|
||||||
$user = new User();
|
test()->foo();
|
||||||
$user->foo();
|
})->throws(\ReflectionException::class, 'Call to undefined method PHPUnit\Framework\TestCase::foo()');
|
||||||
})->throws(Error::class, 'Call to undefined method User::foo()');
|
|
||||||
|
|
||||||
it('can forward unexpected calls to any global function')->_assertThat();
|
it('can forward unexpected calls to any global function')->_assertThat();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user