Beispiel #1
0
 /**
  * @inheritdoc
  */
 public function provide_valid_parse()
 {
     $data = array();
     for ($i = 0; $i < self::DATA_SET_LENGTH; $i++) {
         $stringValue = TestDataGenerator::ipString();
         $intValue = ip2long($stringValue);
         $data[] = array($stringValue, $intValue, $intValue);
     }
     return $data;
 }
Beispiel #2
0
 /**
  * @return array
  */
 public function provide_valid_parse()
 {
     return array(array('193.168.0.1/32', ip2long('193.168.0.1'), ip2long('193.168.0.1')), array('10.8.3.4/24', ip2long('10.8.3.0'), ip2long('10.8.3.255')), array('10.100.3.4/16', ip2long('10.100.0.0'), ip2long('10.100.255.255')), array('192.168.128.33/17', ip2long('192.168.128.0'), ip2long('192.168.255.255')), array(TestDataGenerator::ipString() . '/0', ip2long('0.0.0.0'), ip2long('255.255.255.255')));
 }