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

CheckTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 13
rs 10
c 1
b 0
f 0
wmc 1
lcom 0
cbo 4

1 Method

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