DoctrineRepositoryFactorySpec   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A it_should_create_repository_definition_for_the_given_classe_name() 0 10 1
1
<?php
2
3
namespace spec\Knp\RadBundle\DependencyInjection\Definition;
4
5
use PhpSpec\ObjectBehavior;
6
7
class DoctrineRepositoryFactorySpec extends ObjectBehavior
8
{
9
    function it_should_create_repository_definition_for_the_given_classe_name()
0 ignored issues
show
Coding Style introduced by
Method name "DoctrineRepositoryFactorySpec::it_should_create_repository_definition_for_the_given_classe_name" is not in camel caps format
Loading history...
10
    {
11
        $definition = $this->createDefinition('App\Entity\Cheese');
12
        $definition->shouldBeAnInstanceOf('Symfony\Component\DependencyInjection\Definition');
13
14
        $definition->getFactoryService()->shouldReturn('doctrine');
15
        $definition->getFactoryMethod()->shouldReturn('getRepository');
16
        $definition->getArguments()->shouldReturn(array('App\Entity\Cheese'));
17
        $definition->isPublic()->shouldReturn(true);
18
    }
19
}
20