BaseCommandTest::testConstructor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Bobbyshaw\WatsonVisualRecognition\Tests\Commands;
4
5
use Bobbyshaw\WatsonVisualRecognition\ClientInterface;
6
use Bobbyshaw\WatsonVisualRecognition\Commands\BaseCommand;
7
use Bobbyshaw\WatsonVisualRecognition\Tests\Base;
8
9
/**
10
 * Class BaseCommandTest
11
 * @package Bobbyshaw\WatsonVisualRecognition\Tests\Commands
12
 */
13
class BaseCommandTest extends Base
14
{
15
16
    public function testConstructor()
17
    {
18
        /** @var BaseCommand $base */
19
        $base = $this->getMockForAbstractClass(BaseCommand::class, ['test']);
20
        $this->assertInstanceOf(ClientInterface::class, $base->getClient());
21
    }
22
}
23