--CREDITS-- Danilo Benevides Henrique Moody --FILE-- check('257.0.0.1'); } catch (IpException $exception) { echo $exception->getMessage().PHP_EOL; } try { v::not(v::ip())->check('127.0.0.1'); } catch (IpException $exception) { echo $exception->getMessage().PHP_EOL; } try { v::ip('127.0.1.*')->check('127.0.0.1'); } catch (IpException $exception) { echo $exception->getMessage().PHP_EOL; } try { v::not(v::ip('127.0.1.*'))->check('127.0.1.1'); } catch (IpException $exception) { echo $exception->getMessage().PHP_EOL; } try { v::ip()->assert('257.0.0.1'); } catch (NestedValidationException $exception) { echo $exception->getFullMessage().PHP_EOL; } try { v::not(v::ip())->assert('127.0.0.1'); } catch (NestedValidationException $exception) { echo $exception->getFullMessage().PHP_EOL; } try { v::ip('127.0.1.*')->assert('127.0.0.1'); } catch (NestedValidationException $exception) { echo $exception->getFullMessage().PHP_EOL; } try { v::not(v::ip('127.0.1.*'))->assert('127.0.1.1'); } catch (NestedValidationException $exception) { echo $exception->getFullMessage().PHP_EOL; } ?> --EXPECT-- "257.0.0.1" must be an IP address "127.0.0.1" must not be an IP address "127.0.0.1" must be an IP address in the "127.0.1.0-127.0.1.255" range "127.0.1.1" must not be an IP address in the "127.0.1.0-127.0.1.255" range - "257.0.0.1" must be an IP address - "127.0.0.1" must not be an IP address - "127.0.0.1" must be an IP address in the "127.0.1.0-127.0.1.255" range - "127.0.1.1" must not be an IP address in the "127.0.1.0-127.0.1.255" range