Esempio n. 1
0
 public function testShouldReturnFalse()
 {
     $this->assertFalse($this->sut->ip2long('123.456.'));
     $this->assertFalse($this->sut->ip2long('123.456.654'));
     $this->assertFalse($this->sut->ip2long('123.123.123.'));
     $this->assertFalse($this->sut->ip2long('123.123.123.458'));
 }
Esempio n. 2
0
 /**
  * @param string $ip
  * @return Response
  */
 public function ip($ip)
 {
     return $this->dec($this->ipUtil->ip2long($ip));
 }