ConfigurationTest::testOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * (c) Christian Gripp <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Core23\PiwikBundle\Tests\DependencyInjection;
13
14
use Core23\PiwikBundle\DependencyInjection\Configuration;
15
use PHPUnit\Framework\TestCase;
16
use Symfony\Component\Config\Definition\Processor;
17
18
final class ConfigurationTest extends TestCase
19
{
20
    public function testOptions(): void
21
    {
22
        $processor = new Processor();
23
24
        $config = $processor->processConfiguration(new Configuration(), [[
25
        ]]);
26
27
        $expected = [
28
            'http' => [
29
                'client'          => 'httplug.client.default',
30
                'message_factory' => 'httplug.message_factory.default',
31
            ],
32
        ];
33
34
        $this->assertSame($expected, $config);
35
    }
36
}
37