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

ClientSpec::let()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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