Passed
Pull Request — master (#9)
by Andrew
04:17
created

SubMuncherIPv6Test   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 14
rs 10
c 1
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIgnoresIPv6() 0 8 1
1
<?php
2
3
namespace AndrewAndante\SubMuncher\Test;
4
5
use AndrewAndante\SubMuncher\SubMuncher;
6
7
class SubMuncherIPv6Test extends \PHPUnit_Framework_TestCase
8
{
9
    /**
10
     * @TODO remove this when we have actual IPv6 functionality
11
     */
12
    public function testIgnoresIPv6()
13
    {
14
        $this->assertEmpty(SubMuncher::consolidate(['::10', '::11']));
15
        $this->assertEquals(
16
            ['10.10.10.10/31'],
17
            SubMuncher::consolidate(['10.10.10.10', '10.10.10.11', '::10', '::11'])
18
        );
19
    }
20
}
21