Completed
Push — master ( 56a2b4...996a04 )
by Christian
01:25
created

ConfigurationTest::testOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 16
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

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