PluginLocatorTest::testLocatePlugins()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 8
rs 10
cc 1
nc 1
nop 0
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
}