Completed
Push — master ( 77f1a4...b8ad13 )
by Angelo
15s
created

MokaPluginTestCase::setPluginFQCN()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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;
1 ignored issue
show
Documentation Bug introduced by
It seems like $pluginFQCN of type string is incompatible with the declared type object<Moka\Plugin\PluginInterface> of property $pluginFQCN.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
25
    }
26
}
27