Beispiel #1
0
 /**
  * @dataProvider providerForIpOutsideRange
  * @expectedException Respect\Validation\Exceptions\IpException
  */
 public function testIpsOutsideRangeShouldReturnFalse($input, $networkRange)
 {
     $ipValidator = new Ip($networkRange);
     $this->assertFalse($ipValidator->__invoke($input));
     $this->assertFalse($ipValidator->assert($input));
 }