Beispiel #1
0
 /**
  * @depends testConstructSuccess
  */
 public function testIncludesIP()
 {
     $ip = TestDataGenerator::ipInt();
     $range = new Range(new IP($ip), new IP($ip));
     $this->assertTrue($range->includesIP(new IP($ip)));
     $this->assertFalse($range->includesIP(new IP($ip - 1)));
     $this->assertFalse($range->includesIP(new IP($ip + 1)));
 }