Completed
Push — master ( 297f5c...7c9e2e )
by Dmitry
05:43
created

DefaultArtifactsTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

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