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

ClassesTest::testIsValidClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.9
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;
13
14
use Badcow\DNS\Classes;
15
16
class ClassesTest extends \PHPUnit\Framework\TestCase
17
{
18
    public function testIsValidClass()
19
    {
20
        $this->assertTrue(Classes::isValid('IN'));
21
        $this->assertTrue(Classes::isValid('HS'));
22
        $this->assertTrue(Classes::isValid('CH'));
23
24
        $this->assertFalse(Classes::isValid('INTERNET'));
25
        $this->assertFalse(Classes::isValid('in'));
26
        $this->assertFalse(Classes::isValid('In'));
27
        $this->assertFalse(Classes::isValid('hS'));
28
    }
29
}
30