Passed
Push — master ( 8bad73...c5d158 )
by David
57s queued 11s
created

DumpCommandTest::testCall()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace TheCodingMachine\Discovery\Tests\Commands;
5
6
7
use Symfony\Component\Console\Input\ArrayInput;
8
use Symfony\Component\Console\Input\InputDefinition;
9
use TheCodingMachine\Discovery\Commands\DumpCommand;
10
use TheCodingMachine\Discovery\Tests\AbstractDiscoveryTest;
11
12
class DumpCommandTest extends AbstractDiscoveryTest
13
{
14
15
    public function testCall()
16
    {
17
        $input = new ArrayInput([], new InputDefinition());
18
19
        $result = $this->callCommand(new DumpCommand(), $input);
20
21
        $this->assertStringContainsString('Discovery files successfully dumped in the .discovery directory.', $result);
22
    }
23
24
}
25