DefaultArtifactsTest::test()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 9.7998
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Test;
4
5
use Basis\Test;
6
7
class DefaultArtifactsTest extends Test
8
{
9
    public function test()
10
    {
11
        $this->assertFileExists(getcwd().'/.htaccess');
12
        $this->assertFileExists(getcwd().'/server.php');
13
14
        unlink(getcwd().'/.htaccess');
15
        unlink(getcwd().'/server.php');
16
        $this->assertFileNotExists(getcwd().'/.htaccess');
17
        $this->assertFileNotExists(getcwd().'/server.php');
18
19
        $this->dispatch('module.defaults');
20
        $this->assertFileExists(getcwd().'/.htaccess');
21
        $this->assertFileExists(getcwd().'/server.php');
22
    }
23
}
24