Passed
Branch master (bb3df7)
by Theo
01:32
created

it_should_set_the_tree_builder_config()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Tests\CalendarBundle\DependencyInjection;
4
5
use CalendarBundle\DependencyInjection\Configuration;
6
use PhpSpec\ObjectBehavior;
7
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
8
9
class ConfigurationSpec extends ObjectBehavior
10
{
11
    public function it_is_initializable()
12
    {
13
        $this->shouldHaveType(Configuration::class);
14
    }
15
16
    public function it_should_set_the_tree_builder_config()
17
    {
18
        $this
19
            ->getConfigTreeBuilder()
0 ignored issues
show
Bug introduced by
The method getConfigTreeBuilder() does not exist on Tests\CalendarBundle\Dep...ction\ConfigurationSpec. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

19
            ->/** @scrutinizer ignore-call */ 
20
              getConfigTreeBuilder()
Loading history...
20
            ->shouldReturnAnInstanceOf(TreeBuilder::class)
21
        ;
22
    }
23
}
24