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

CommandProviderTest::testGetCommands()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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