DebugServiceProviderTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testRegister() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Yii\Debug\Tests\Unit;
6
7
use PHPUnit\Framework\TestCase;
8
use Psr\Container\ContainerInterface;
9
use Yiisoft\Di\Container;
10
use Yiisoft\Di\ContainerConfig;
11
use Yiisoft\Yii\Debug\Collector\ContainerInterfaceProxy;
12
use Yiisoft\Yii\Debug\DebugServiceProvider;
13
14
final class DebugServiceProviderTest extends TestCase
15
{
16
    public function testRegister(): void
17
    {
18
        $config = ContainerConfig::create()->withProviders([
19
            new DebugServiceProvider(),
20
        ]);
21
        $container = new Container($config);
22
23
        $this->assertInstanceOf(ContainerInterfaceProxy::class, $container->get(ContainerInterface::class));
24
    }
25
}
26