AbstractSecurityExtensionTestCase::getExtension()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Symnedi\Security\Tests\DI;
6
7
use Nette\DI\Compiler;
8
use Nette\DI\ContainerBuilder;
9
use PHPUnit\Framework\TestCase;
10
use Symnedi\Security\DI\SecurityExtension;
11
12
abstract class AbstractSecurityExtensionTestCase extends TestCase
13
{
14
    protected function getExtension() : SecurityExtension
15
    {
16
        $extension = new SecurityExtension();
17
        $extension->setCompiler(new Compiler(new ContainerBuilder()), 'compiler');
18
19
        return $extension;
20
    }
21
}
22