parse() public method

public parse ( $value )
Esempio n. 1
0
 /**
  * @dataProvider ipProvider
  */
 public function testIpType($ipstr, $pass = true)
 {
     $ip = new IpType();
     $this->assertEquals($pass, $ip->test($ipstr));
     if ($pass) {
         $this->assertNotNull($ip->parse($ipstr));
     }
 }