mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
22 lines
386 B
PHP
22 lines
386 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Exceptions;
|
|
|
|
use Exception;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class ExpectationNotFound extends Exception
|
|
{
|
|
/**
|
|
* Creates a new ExpectationNotFound instance from the given name.
|
|
*/
|
|
public static function fromName(string $name): ExpectationNotFound
|
|
{
|
|
return new self("Expectation [$name] does not exist.");
|
|
}
|
|
}
|