respect-validation/tests/integration/rules/arrayVal_2.phpt
2015-10-22 03:22:58 -02:00

16 lines
310 B
PHP

--FILE--
<?php
require 'vendor/autoload.php';
use Respect\Validation\Exceptions\ArrayValException;
use Respect\Validation\Validator as v;
try {
v::arrayVal()->check('Bla %123');
} catch (ArrayValException $exception) {
echo $exception->getMainMessage();
}
?>
--EXPECTF--
"Bla %123" must be an array