ConfigurationTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
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 testValuesAreInvalidIfRequiredValueIsNotProvided() 0 15 1
1
<?php
2
3
namespace tests\Happyr\BlazeBundle\DependencyInjection;
4
5
use Happyr\BlazeBundle\DependencyInjection\Configuration;
6
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
7
use PHPUnit\Framework\TestCase;
8
9
class ConfigurationTest extends TestCase
10
{
11
    use ConfigurationTestCaseTrait;
12
13
    protected function getConfiguration()
14
    {
15
        return new Configuration();
16
    }
17
18
    public function testValuesAreInvalidIfRequiredValueIsNotProvided()
19
    {
20
        $this->assertConfigurationIsValid([
21
                [
22
                    'objects' => [
23
                        'Acme\Foo' => [
24
                            'edit' => [
25
                                'route' => 'foo_edit',
26
                                'parameters' => ['id' => 'getId'],
27
                            ],
28
                        ],
29
                    ],
30
                ],
31
        ]);
32
    }
33
}
34