mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
forward bad TestCase method calls to global functions
This commit is contained in:
@ -40,3 +40,5 @@ it('allows to call underlying protected/private methods', function () {
|
||||
it('throws error if method do not exist', function () {
|
||||
test()->name();
|
||||
})->throws(\ReflectionException::class, 'Call to undefined method PHPUnit\Framework\TestCase::name()');
|
||||
|
||||
it('can forward unexpected calls to any global function')->_assertThat();
|
||||
|
||||
Reference in New Issue
Block a user