ConfigurationSpec::it_builds()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Kreta package.
5
 *
6
 * (c) Beñat Espiña <[email protected]>
7
 * (c) Gorka Laucirica <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace spec\Kreta\SimpleApiDocBundle\DependencyInjection;
14
15
use PhpSpec\ObjectBehavior;
16
17
/**
18
 * Spec of Configuration class.
19
 *
20
 * @author Beñat Espiña <[email protected]>
21
 */
22
class ConfigurationSpec extends ObjectBehavior
23
{
24
    function it_is_initializable()
25
    {
26
        $this->shouldHaveType('Kreta\SimpleApiDocBundle\DependencyInjection\Configuration');
27
    }
28
29
    function it_implements_configuration_interface()
30
    {
31
        $this->shouldImplement('Symfony\Component\Config\Definition\ConfigurationInterface');
32
    }
33
34
    function it_builds()
35
    {
36
        $this->getConfigTreeBuilder()
37
            ->shouldReturnAnInstanceOf('Symfony\Component\Config\Definition\Builder\TreeBuilder');
38
    }
39
}
40