mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 17:27:22 +01:00
extracted Expectations to a CoreExpectation class
This commit is contained in:
17
src/Exceptions/ExpectationNotFoundException.php
Normal file
17
src/Exceptions/ExpectationNotFoundException.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace Pest\Exceptions;
|
||||
|
||||
use InvalidArgumentException;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final class ExpectationNotFoundException extends InvalidArgumentException
|
||||
{
|
||||
public function __construct(string $expectationName)
|
||||
{
|
||||
parent::__construct(sprintf("Impossible to find [%s] expectation", $expectationName));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user