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

DumpCommandTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

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