AbstractSecurityExtensionTestCase   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getExtension() 0 7 1
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