Passed
Push — master ( 3969eb...5e03f4 )
by Tomasz
01:33
created

ClientSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 3 1
A let() 0 8 1
1
<?php
2
3
namespace spec\Aggrego\CommandLogicUnit\EventConsumer;
4
5
use Aggrego\CommandConsumer\Client as CommandConsumerClient;
6
use Aggrego\CommandLogicUnit\EventConsumer\Client;
7
use Aggrego\CommandLogicUnit\EventProcessor\EventProcessor;
8
use Aggrego\CommandLogicUnit\ResponseProcessor\Factory;
9
use Aggrego\EventConsumer\Client as EventConsumerClient;
10
use PhpSpec\ObjectBehavior;
11
12
class ClientSpec extends ObjectBehavior
13
{
14
    function let(
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...
15
        EventProcessor $eventProcessor,
16
        CommandConsumerClient $commandConsumerClient,
17
        Factory $factory,
18
        EventConsumerClient $eventConsumerClient
19
    )
20
    {
21
        $this->beConstructedWith($eventProcessor, $commandConsumerClient, $factory, $eventConsumerClient);
22
    }
23
24
    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...
25
    {
26
        $this->shouldHaveType(Client::class);
27
    }
28
}
29