mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apply fixes from StyleCI (#12124)
This commit is contained in:
@@ -78,11 +78,11 @@ class IpTest extends TestCase
|
||||
|
||||
public function testHexToIp()
|
||||
{
|
||||
$this->assertEquals("192.168.1.254", IP::fromHexString("c0 a8 01 fe"));
|
||||
$this->assertEquals("192.168.1.254", IP::fromHexString("c0a801fe"));
|
||||
$this->assertEquals("192.168.1.254", IP::fromHexString("c0 a8 01 fe "));
|
||||
$this->assertEquals("192.168.1.254", IP::fromHexString("\"c0 a8 01 fe\""));
|
||||
$this->assertEquals("192.168.1.254", IP::fromHexString("192.168.1.254"));
|
||||
$this->assertEquals('192.168.1.254', IP::fromHexString('c0 a8 01 fe'));
|
||||
$this->assertEquals('192.168.1.254', IP::fromHexString('c0a801fe'));
|
||||
$this->assertEquals('192.168.1.254', IP::fromHexString('c0 a8 01 fe '));
|
||||
$this->assertEquals('192.168.1.254', IP::fromHexString('"c0 a8 01 fe"'));
|
||||
$this->assertEquals('192.168.1.254', IP::fromHexString('192.168.1.254'));
|
||||
|
||||
$this->assertEquals('2001:db8::2:1', IP::fromHexString('2001:db8::2:1'));
|
||||
$this->assertEquals('2001:db8::2:1', IP::fromHexString('20 01 0d b8 00 00 00 00 00 00 00 00 00 02 00 01'));
|
||||
@@ -94,7 +94,7 @@ class IpTest extends TestCase
|
||||
$this->assertEquals('::', IP::fromHexString('00000000000000000000000000000000'));
|
||||
|
||||
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
|
||||
IP::fromHexString("c0 a8 01 01 fe");
|
||||
IP::fromHexString('c0 a8 01 01 fe');
|
||||
|
||||
$this->expectException('LibreNMS\Exceptions\InvalidIpException');
|
||||
IP::fromHexString('20 01 0d b8 00 00 00 00 00 00 00 00 00 02 00 00 00 01');
|
||||
|
Reference in New Issue
Block a user