testConsoleListenerConfiguration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
nc 1
nop 0
dl 0
loc 9
c 0
b 0
f 0
cc 1
rs 10
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