Files
pest/src/Exceptions/InvalidExpectationValue.php
2022-12-07 09:17:35 +00:00

22 lines
381 B
PHP

<?php
declare(strict_types=1);
namespace Pest\Exceptions;
use InvalidArgumentException;
/**
* @internal
*/
final class InvalidExpectationValue extends InvalidArgumentException
{
/**
* @throws self
*/
public static function expected(string $type): never
{
throw new self(sprintf('Invalid expectation value type. Expected [%s].', $type));
}
}