You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('ensures the given closures reports the correct class name', function () {
$closure = function () {
throw new Exception('Call to undefined method P\Tests\IntentionallyNotExisting::testBasic().');
};
ExceptionTrace::ensure($closure);
})->throws(
Exception::class,
'Call to undefined method Tests\IntentionallyNotExisting::testBasic().',
);
it('ensures the given closures reports the correct class name and suggests the [uses()] function', function () {
$this->get();
})->throws(
Error::class,
'Call to undefined method Tests\Unit\Support\ExceptionTrace::get(). Did you forget to use the [uses()] function? Read more at: https://pestphp.com/docs/configuring-tests',