Completed
Push — master ( 224127...d5dc6c )
by Alejandro
28s
created

AuthenticationPluginManagerFactoryTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace ShlinkioTest\Shlink\Rest\Authentication;
5
6
use PHPUnit\Framework\TestCase;
7
use Shlinkio\Shlink\Rest\Authentication\AuthenticationPluginManager;
8
use Shlinkio\Shlink\Rest\Authentication\AuthenticationPluginManagerFactory;
9
use Zend\ServiceManager\ServiceManager;
10
11
class AuthenticationPluginManagerFactoryTest extends TestCase
12
{
13
    /**
14
     * @var AuthenticationPluginManagerFactory
15
     */
16
    private $factory;
17
18
    public function setUp()
19
    {
20
        $this->factory = new AuthenticationPluginManagerFactory();
21
    }
22
23
    /**
24
     * @test
25
     */
26 View Code Duplication
    public function serviceIsProperlyCreated()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
27
    {
28
        $instance = $this->factory->__invoke(new ServiceManager(['services' => [
29
            'config' => [],
30
        ]]), '');
31
        $this->assertInstanceOf(AuthenticationPluginManager::class, $instance);
32
    }
33
}
34