ConfigurationFactorySpec   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 13
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A it_should_create_configuration() 0 6 1
1
<?php
2
3
namespace spec\Knp\RadBundle\AppBundle;
4
5
use PhpSpec\ObjectBehavior;
6
7
class ConfigurationFactorySpec extends ObjectBehavior
8
{
9
    /**
10
     * @param Knp\RadBundle\AppBundle\ConfigurableBundleInterface    $bundle
11
     * @param Symfony\Component\DependencyInjection\ContainerBuilder $container
12
     */
13
    function it_should_create_configuration($bundle, $container)
0 ignored issues
show
Coding Style introduced by
Method name "ConfigurationFactorySpec::it_should_create_configuration" is not in camel caps format
Loading history...
14
    {
15
        $config = $this->createConfiguration($bundle, array('some', 'options'), $container);
16
        $config->shouldBeAnInstanceOf('Knp\RadBundle\AppBundle\Configuration');
17
        $config->getBundle()->shouldReturn($bundle);
18
    }
19
}
20