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

CommandProviderTest::testCommandProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace TheCodingMachine\Discovery\Tests\Commands;
5
6
7
use PHPUnit\Framework\TestCase;
8
use Symfony\Component\Console\Command\Command;
9
use TheCodingMachine\Discovery\Commands\CommandProvider;
10
11
class CommandProviderTest extends TestCase
12
{
13
    public function testCommandProvider()
14
    {
15
        $commandProvider = new CommandProvider();
16
        $commands = $commandProvider->getCommands();
17
        $this->assertContainsOnlyInstancesOf(Command::class, $commands);
18
    }
19
}
20