testValuesAreInvalidIfRequiredValueIsNotProvided()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.7666
c 0
b 0
f 0
cc 1
nc 1
nop 0
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