function it_gets_all_blocked_hosts()
 {
     $hosts = $this->getBlocks();
     $hosts->shouldBeArray();
     $hosts->shouldHaveCount(2);
     $hosts->shouldContainIP(IP::fromString('123.0.0.1'));
 }
示例#2
0
 /**
  * Compare equality with another IP.
  *
  * @param IP $ip
  *
  * @return bool
  */
 public function equals(IP $ip)
 {
     return $ip->toString() === $this->value;
 }