Test Setup Failed
Branch master (e9839e)
by Sergey
02:37 queued 24s
created

ExampleTest::testZone()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
use LTDBeget\dns\configurator\Zone;
3
4
/**
5
 * @author: Viskov Sergey
6
 * @date: 12.04.16
7
 * @time: 3:10
8
 */
9
class ExampleTest extends PHPUnit_Framework_TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
10
{
11
    public function testZone()
12
    {
13
        $data = file_get_contents(__DIR__ . "/../dns/zones/zone.conf");
14
        $zone = Zone::fromString("voksiv.ru.", $data);
15
        $zone->toArray();
16
        $zone->__toString();
17
        $zone->validate();
18
    }
19
}
20