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

NsRdataTest::testSetNsdname()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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