Completed
Pull Request — master (#283)
by Enrico
04:27
created

CheckTest::testExecute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 10
rs 9.4285
c 1
b 0
f 0
1
<?php
2
3
namespace Tests\PHPSA\Command;
4
5
use Tests\PHPSA\TestCase;
6
use PHPSA\Application;
7
use Symfony\Component\Console\Tester\CommandTester;
8
9
class CheckTest extends TestCase
10
{
11
    public function testExecute()
12
    {
13
        $application = new Application();
14
15
        $command = $application->find('check');
16
        $commandTester = new CommandTester($command);
17
        $commandTester->execute(['command'  => $command->getName(), 'path' => 'tests/PHPSA/Command/']);
18
19
        $this->assertContains('Memory usage:', $commandTester->getDisplay());
20
    }
21
}
22