MokaPluginTestCase   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGetStrategy() 0 4 1
A setPluginFQCN() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Moka\Tests;
5
6
use Moka\Plugin\PluginInterface;
7
use Moka\Strategy\MockingStrategyInterface;
8
use PHPUnit\Framework\TestCase;
9
10
abstract class MokaPluginTestCase extends TestCase
11
{
12
    /**
13
     * @var PluginInterface
14
     */
15
    protected $pluginFQCN;
16
17
    final public function testGetStrategy()
18
    {
19
        $this->assertInstanceOf(MockingStrategyInterface::class, $this->pluginFQCN::getStrategy());
20
    }
21
22
    final protected function setPluginFQCN(string $pluginFQCN)
23
    {
24
        $this->pluginFQCN = $pluginFQCN;
25
    }
26
}
27