Example #1
0
 /**
  * @dataProvider getReversePointerData
  */
 public function testReversePointer($ip, $expected)
 {
     $object = new IP($ip);
     $reversePointer = $object->getReversePointer();
     $this->assertEquals($expected, $reversePointer);
 }
Example #2
0
 public function getPrefixData()
 {
     return array(array('24', IP::IP_V4, IP::parse('255.255.255.0')), array('32', IP::IP_V4, IP::parse('255.255.255.255')), array('64', IP::IP_V6, IP::parse('ffff:ffff:ffff:ffff::')), array('128', IP::IP_V6, IP::parse('ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff')));
 }