--CREDITS-- Danilo Correa --FILE-- check([]); } catch (StringValException $exception) { echo $exception->getMessage().PHP_EOL; } try { v::not(v::stringVal())->check(true); } catch (StringValException $exception) { echo $exception->getMessage().PHP_EOL; } try { v::stringVal()->assert(new stdClass()); } catch (NestedValidationException $exception) { echo $exception->getFullMessage().PHP_EOL; } try { v::not(v::stringVal())->assert(42); } catch (NestedValidationException $exception) { echo $exception->getFullMessage().PHP_EOL; } ?> --EXPECT-- `{ }` must be a string `TRUE` must not be string - `[object] (stdClass: { })` must be a string - 42 must not be string