mirror of
https://github.com/pestphp/pest.git
synced 2026-07-21 17:10:03 +02:00
13 lines
413 B
PHP
13 lines
413 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Pest\PendingCalls\TestCall;
|
|
use Pest\TestSuite;
|
|
|
|
it('throws exception if no class nor method has been found', function (): void {
|
|
$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.');
|