Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function testMatch() |
||
12 | { |
||
13 | $this->assertTrue(CIDR::match('1.1.1.1', '1.1.1.1/32')); |
||
14 | $this->assertTrue(CIDR::match('1.1.1.1', '1.1.1.0/24')); |
||
15 | $this->assertTrue(CIDR::match('1.1.1.255', '1.1.1.0/24')); |
||
16 | |||
17 | $this->assertFalse(CIDR::match('1.1.1.1', '1.1.1.0/32')); |
||
18 | $this->assertFalse(CIDR::match('1.1.1.1', '2.2.2.0/24')); |
||
19 | } |
||
20 | |||
33 |