ProviderCollectionSpec::it_is_initializable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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