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

CreateBoardHandlerSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A let() 0 3 1
A it_is_initializable() 0 3 1
1
<?php
2
3
namespace spec\Aggrego\DomainEventProducer\Messenger\Handlers;
4
5
use Aggrego\Domain\Api\Command\CreateBoard\UseCase;
6
use Aggrego\DomainEventProducer\Domain\Repository;
7
use Aggrego\DomainEventProducer\Messenger\Handlers\CreateBoardHandler;
8
use Aggrego\EventConsumer\Client;
9
use PhpSpec\ObjectBehavior;
10
11
class CreateBoardHandlerSpec extends ObjectBehavior
12
{
13
    function let(UseCase $useCase, Repository $repository, Client $client)
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...
14
    {
15
        $this->beConstructedWith($useCase, $repository, $client);
16
    }
17
18
    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...
19
    {
20
        $this->shouldHaveType(CreateBoardHandler::class);
21
    }
22
}
23