DefaultArtifactsTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

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