PluginLocatorTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 10
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testLocatePlugins() 0 8 1
1
<?php
2
3
4
namespace Deployee\Components\Plugins;
5
6
7
use Deployee\Components\Plugins\Locator\PluginLocator;
8
use PHPUnit\Framework\TestCase;
9
use UnitTestPlugins\AwesomeTest\AwesomeTestPlugin;
10
use UnitTestPlugins\GreatTest\GreatTestPlugin;
11
use UnitTestPlugins\SuperTest\SuperTestPlugin;
12
13
class PluginLocatorTest extends TestCase
14
{
15
    public function testLocatePlugins()
16
    {
17
        $locator = new PluginLocator();
18
        $plugins = $locator->locatePlugins();
19
20
        $this->assertContains(SuperTestPlugin::class, $plugins);
21
        $this->assertContains(AwesomeTestPlugin::class, $plugins);
22
        $this->assertContains(GreatTestPlugin::class, $plugins);
23
    }
24
}