Passed
Push — master ( 3c0a3b...680cfc )
by Petr
07:40
created

StoredTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
eloc 7
c 1
b 0
f 1
dl 0
loc 12
rs 10
1
<?php
2
3
namespace BasicTests;
4
5
6
use CommonTestClass;
7
use kalanis\kw_paths\Path;
8
use kalanis\kw_paths\Stored;
9
10
11
class StoredTest extends CommonTestClass
12
{
13
    public function testBasic(): void
14
    {
15
        $path = new Path();
16
        $path->setDocumentRoot('/tmp/none');
17
18
        $this->assertEmpty(Stored::getPath());
19
20
        Stored::init($path);
21
        $xPath = Stored::getPath();
22
        $xPath->setPathToSystemRoot('sdfgsdfgt/');
23
    }
24
}
25