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

DumperTest::testDumpDiscoveryFiles()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 9
nc 1
nop 0
dl 0
loc 14
rs 9.9666
c 0
b 0
f 0
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