| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 37 | public function testConsolidateSubnetsVerboseWithMaxRules() |
||
| 38 | { |
||
| 39 | $result = SubMuncher::consolidate_subnets_verbose($this->json_data['subnets'], 25); |
||
| 40 | $this->assertCount(25, $result['consolidated_subnets']); |
||
| 41 | $this->assertEquals($this->json_data['raw_ips'], $result['initial_IPs']); |
||
| 42 | $this->assertGreaterThanOrEqual(count($this->json_data['raw_ips']), count($result['total_IPs'])); |
||
| 43 | |||
| 44 | foreach ($this->json_data['raw_ips'] as $raw_ip) { |
||
| 45 | $this->assertContains($raw_ip, $result['total_IPs']); |
||
| 46 | } |
||
| 47 | } |
||
| 48 | } |
||
| 49 |