Completed
Push — master ( 7ee214...32fd8d )
by Alberto
19s
created

src/Moka/Tests/MokaPluginTestCase.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

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