Test Failed
Pull Request — master (#11)
by recca
07:11
created

DumperTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testDumpDiscoveryFiles() 0 14 1
1
<?php
2
3
4
namespace TheCodingMachine\Discovery\Tests;
5
6
7
use TheCodingMachine\Discovery\Dumper;
8
9
class DumperTest extends AbstractDiscoveryTest
10
{
11
    public function testDumpDiscoveryFiles()
12
    {
13
        $dumper = new Dumper($this->getComposer(), $this->getIO());
14
15
        $dumper->dumpDiscoveryFiles();
16
17
        $this->assertFileExists('.discovery/Discovery.php');
18
        $this->assertFileExists('.discovery/discovery_asset_types.php');
19
        $this->assertFileExists('.discovery/discovery_values.php');
20
21
        unlink('.discovery/Discovery.php');
22
        unlink('.discovery/discovery_asset_types.php');
23
        unlink('.discovery/discovery_values.php');
24
        rmdir('.discovery');
25
    }
26
}
27