HelpCommandTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 4

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testExecute() 0 8 1
1
<?php
2
3
namespace Bowerphp\Test\Command;
4
5
use Bowerphp\Console\Application;
6
use PHPUnit\Framework\TestCase;
7
use Symfony\Component\Console\Tester\CommandTester;
8
9
/**
10
 * @group functional
11
 */
12
class HelpCommandTest extends TestCase
13
{
14
    public function testExecute()
15
    {
16
        $application = new Application();
17
        $commandTester = new CommandTester($command = $application->get('help'));
18
        $commandTester->execute(['command' => $command->getName()], ['decorated' => false]);
19
20
        $this->assertRegExp('/displays help for a given command/', $commandTester->getDisplay());
21
    }
22
}
23