EventListenerConfigurationTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 11
c 0
b 0
f 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConsoleListenerConfiguration() 0 9 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace App\Tests\Functional;
6
7
use App\Tests\Support\ApplicationDataProvider;
8
use PHPUnit\Framework\TestCase;
9
use Yiisoft\Yii\Event\ListenerConfigurationChecker;
10
11
class EventListenerConfigurationTest extends TestCase
12
{
13
    public function testConsoleListenerConfiguration(): void
14
    {
15
        $config = ApplicationDataProvider::getConsoleConfig();
16
        $container = ApplicationDataProvider::getConsoleContainer();
17
18
        $checker = $container->get(ListenerConfigurationChecker::class);
19
        $checker->check($config->get('events-console'));
20
21
        self::assertInstanceOf(ListenerConfigurationChecker::class, $checker);
22
    }
23
}
24