mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
11 lines
381 B
PHP
11 lines
381 B
PHP
<?php
|
|
|
|
use Pest\PendingCalls\TestCall;
|
|
use Pest\TestSuite;
|
|
|
|
it('throws exception if no class nor method has been found', function () {
|
|
$testCall = new TestCall(TestSuite::getInstance(), 'filename', 'description', fn () => 'closure');
|
|
|
|
$testCall->covers('fakeName');
|
|
})->throws(InvalidArgumentException::class, 'No class, trait or method named "fakeName" has been found.');
|