/** * test wrapper around ip2long which might return -1 or false depending on PHP version * @covers IP::toUnsigned */ public function testip2longWrapper() { // @todo FIXME: Add more tests ? $this->assertEquals(pow(2, 32) - 1, IP::toUnsigned('255.255.255.255')); $i = 'IN.VA.LI.D'; $this->assertFalse(IP::toUnSigned($i)); }