ConfigurationTest::testConfiguration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 10
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace SymfonyBundles\RedisBundle\Tests\DependencyInjection;
4
5
use SymfonyBundles\RedisBundle\Tests\TestCase;
6
use Symfony\Component\Config\Definition\Processor;
7
use Symfony\Component\Config\Definition\ConfigurationInterface;
8
use SymfonyBundles\RedisBundle\DependencyInjection\Configuration;
9
10
class ConfigurationTest extends TestCase
11
{
12
    public function testConfiguration(): void
13
    {
14
        $processor = new Processor();
15
        $configuration = new Configuration();
16
17
        $this->assertInstanceOf(ConfigurationInterface::class, $configuration);
18
19
        $configs = $processor->processConfiguration($configuration, []);
20
21
        $this->assertSame(['clients' => ['default' => ['$parameters' => [], '$options' => []]]], $configs);
22
    }
23
}
24