Completed
Pull Request — master (#26)
by Stepan
05:53
created

CommandProviderTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetCommands() 0 7 1
1
<?php
2
3
namespace PackageVersionsTest;
4
5
use PackageVersions\CommandProvider;
6
use PackageVersions\VersionsCommand;
7
8
/**
9
 * Class CommandProviderTest
10
 */
11
class CommandProviderTest extends \PHPUnit_Framework_TestCase
12
{
13
    public function testGetCommands()
14
    {
15
        $commands = (new CommandProvider())->getCommands();
16
17
        static::assertCount(1, $commands);
18
        static::assertInstanceOf(VersionsCommand::class, $commands[0]);
19
    }
20
}
21