ProviderCollectionSpec   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 4 1
A it_returns_added_providers() 0 8 1
1
<?php
2
3
namespace spec\Knp\RadBundle\Alice;
4
5
use PhpSpec\ObjectBehavior;
6
use Prophecy\Argument;
7
8
class ProviderCollectionSpec extends ObjectBehavior
9
{
10
    function it_is_initializable()
0 ignored issues
show
Coding Style introduced by
Method name "ProviderCollectionSpec::it_is_initializable" is not in camel caps format
Loading history...
11
    {
12
        $this->shouldHaveType('Knp\RadBundle\Alice\ProviderCollection');
13
    }
14
15
    function it_returns_added_providers($provider1, $provider2)
0 ignored issues
show
Coding Style introduced by
Method name "ProviderCollectionSpec::it_returns_added_providers" is not in camel caps format
Loading history...
16
    {
17
        $this->addProvider($provider1);
18
        $this->getProviders()->shouldReturn(array($provider1));
19
20
        $this->addProvider($provider2);
21
        $this->getProviders()->shouldReturn(array($provider1, $provider2));
22
    }
23
}
24