BaseCommandTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstructor() 0 6 1
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