mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 06:13:35 +02:00
19 lines
351 B
PHP
19 lines
351 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Exceptions;
|
|
|
|
use Exception;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class ExpectationNotFound extends Exception
|
|
{
|
|
public static function fromName(string $name): ExpectationNotFound
|
|
{
|
|
return new self("The expectation [$name] does not exist. You may register it using [expect()->extend()].");
|
|
}
|
|
}
|