ListenerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testDispatch() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Symnedi\Security\Tests\DI\SecurityExtension;
6
7
use Nette\Application\Application;
8
use Symnedi\Security\Tests\ContainerFactory;
9
use Symnedi\Security\Tests\DI\AbstractSecurityExtensionTestCase;
10
11
final class ListenerTest extends AbstractSecurityExtensionTestCase
12
{
13
    /**
14
     * @expectedException \Nette\Application\AbortException
15
     */
16
    public function testDispatch()
17
    {
18
        $container = (new ContainerFactory())->createWithConfig(__DIR__ . '/ListenerSource/config.neon');
19
20
        /** @var Application $application */
21
        $application = $container->getByType(Application::class);
22
        $application->run();
23
    }
24
}
25