Passed
Push — master ( 45cbc7...73f609 )
by Tomasz
01:28
created

RepositorySpec::let()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace spec\Aggrego\DomainEventProducer\Domain;
4
5
use Aggrego\Domain\Board\Repository as DomainRepository;
6
use Aggrego\DomainEventProducer\Domain\Repository;
7
use PhpSpec\ObjectBehavior;
8
9
class RepositorySpec extends ObjectBehavior
10
{
11
    function let(DomainRepository $repository)
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...
12
    {
13
        $this->beConstructedWith($repository);
14
    }
15
16
    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...
17
    {
18
        $this->shouldHaveType(Repository::class);
19
        $this->shouldHaveType(DomainRepository::class);
20
    }
21
}
22