ConfigurationSpec   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 3 1
A it_generates_a_tree() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace spec\Knp\DictionaryBundle\DependencyInjection;
6
7
use Knp\DictionaryBundle\DependencyInjection\Configuration;
8
use PhpSpec\ObjectBehavior;
9
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
10
11
final class ConfigurationSpec extends ObjectBehavior
12
{
13
    function it_is_initializable()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
14
    {
15
        $this->shouldHaveType(Configuration::class);
16
    }
17
18
    function it_generates_a_tree()
19
    {
20
        $this->getConfigTreeBuilder()->shouldHaveType(TreeBuilder::class);
0 ignored issues
show
Bug introduced by
The method getConfigTreeBuilder() does not exist on spec\Knp\DictionaryBundl...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

20
        $this->/** @scrutinizer ignore-call */ 
21
               getConfigTreeBuilder()->shouldHaveType(TreeBuilder::class);
Loading history...
21
    }
22
}
23