matchRange() public static method

public static matchRange ( $ip, $range )
Beispiel #1
0
 /**
  * @test
  */
 public function test_match_range()
 {
     $range = Ip::matchRange('192.168.100.', '192.168..');
     $this->assertTrue($range);
     $range = Ip::matchRange('192.168.1.200', '192.168.1.');
     $this->assertTrue($range);
     $range = Ip::matchRange('192.168.1.200', '192.168.2.');
     $this->assertFalse($range);
 }