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

ExampleTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testZone() 0 8 1
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