Completed
Push — master ( 666d36...a3ce9d )
by Sam
02:53
created

NsRdataTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testSetNsdname() 0 8 1
A testOutput() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of Badcow DNS Library.
5
 *
6
 * (c) Samuel Williams <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Badcow\DNS\Tests\Rdata;
13
14
use Badcow\DNS\Rdata\NS;
15
16
class NsRdataTest extends \PHPUnit\Framework\TestCase
17
{
18
    public function testSetNsdname()
19
    {
20
        $nsdname = 'foo.example.com.';
21
        $dname = new NS();
22
        $dname->setTarget($nsdname);
23
24
        $this->assertEquals($nsdname, $dname->getTarget());
25
    }
26
27
    public function testOutput()
28
    {
29
        $Nsdname = 'foo.example.com.';
30
        $dname = new NS();
31
        $dname->setTarget($Nsdname);
32
33
        $this->assertEquals($Nsdname, $dname->output());
34
    }
35
}
36