ConfigurationTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfiguration() 0 4 1
A testProcessedValueContainsRequiredValue() 0 12 1
1
<?php
2
3
namespace Kunstmaan\AdminListBundle\Tests\DependencyInjection;
4
5
use Kunstmaan\AdminListBundle\DependencyInjection\Configuration;
6
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
7
use PHPUnit\Framework\TestCase;
8
9
/**
10
 * Class ConfigurationTest
11
 */
12
class ConfigurationTest extends TestCase
13
{
14
    use ConfigurationTestCaseTrait;
15
16
    /**
17
     * @return \Symfony\Component\Config\Definition\ConfigurationInterface
18
     */
19
    protected function getConfiguration()
20
    {
21
        return new Configuration();
22
    }
23
24
    public function testProcessedValueContainsRequiredValue()
25
    {
26
        $array = [
27
            'lock' => [
28
                'enabled' => true,
29
                'check_interval' => 15,
30
                'threshold' => 35,
31
            ],
32
        ];
33
34
        $this->assertProcessedConfigurationEquals([$array], $array);
35
    }
36
}
37