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

SubMuncherIPv6Test::testIgnoresIPv6()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 8
rs 9.4285
c 1
b 0
f 1
cc 1
eloc 5
nc 1
nop 0
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