ZoneBuilderTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testBuild() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of Badcow DNS Library.
7
 *
8
 * (c) Samuel Williams <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Badcow\DNS\Tests;
15
16
use Badcow\DNS\ZoneBuilder;
17
use PHPUnit\Framework\TestCase;
18
19
class ZoneBuilderTest extends TestCase
20
{
21
    public function testBuild(): void
22
    {
23
        $zone = TestZone::buildTestZone();
24
        $zoneBuilder = new ZoneBuilder();
25
        $this->assertEquals(TestZone::getExpectation(), $output = $zoneBuilder->build($zone));
26
    }
27
}
28