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

16 lines
327 B
PHP

--FILE--
<?php
require 'vendor/autoload.php';
use Respect\Validation\Exceptions\AllOfException;
use Respect\Validation\Validator as v;
try {
v::arrayVal()->assert(new stdClass());
} catch (AllOfException $exception) {
echo $exception->getFullMessage();
}
?>
--EXPECTF--
- `[object] (stdClass: { })` must be an array