CommandTest::testCommand()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Hairmare\Dodat;
4
5
use Symfony\Component\Console\Tester\CommandTester;
6
use Hairmare\Dodat\Load;
7
8
class CommandTest extends \PHPUnit_Framework_TestCase
9
{
10
    public function testCommand()
11
    {
12
        $runMock = $this->getMock('\Hairmare\Dodat\Run');
13
        $runMock->expects($this->once())->method('setScripts');
14
        $runMock->expects($this->once())->method('run');
15
16
        $load = new Load(file_get_contents(__DIR__.'/../.travis.yml'));
17
18
        $command = new Command($runMock, $load);
19
        $tester = new CommandTester($command);
20
21
        $tester->execute(array());
22
    }
23
}
24