mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 09:17:23 +01:00
wip toward lvl9
This commit is contained in:
11
src/Exceptions/ExpectationException.php
Normal file
11
src/Exceptions/ExpectationException.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Pest\Exceptions;
|
||||
|
||||
class ExpectationException extends \Exception
|
||||
{
|
||||
public static function invalidValue($expectationName, $valueRequired): ExpectationException
|
||||
{
|
||||
return new ExpectationException(sprintf('%s expectation requires a %s value.', $expectationName, $valueRequired));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user