ConfigurationTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 16
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConfigTreeBuilder() 0 13 1
1
<?php
2
3
namespace Savchenko\Bundle\OpenWeatherMapBundle\Tests\DependencyInjection;
4
5
use Savchenko\Bundle\OpenWeatherMapBundle\DependencyInjection\Configuration;
6
use Symfony\Component\Config\Definition\Processor;
7
8
class ConfigurationTest extends \PHPUnit_Framework_TestCase
9
{
10
    public function testConfigTreeBuilder()
11
    {
12
        $config = [
13
            'savchenko_open_weather_map' => [
14
                'api_key' => 'some_api_key'
15
            ]
16
        ];
17
18
        $processor = new Processor();
19
        $processedConfig = $processor->processConfiguration(new Configuration(), $config);
20
21
        self::assertEquals(array_merge($config['savchenko_open_weather_map']), $processedConfig);
22
    }
23
}