Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class BaseConsumerTest extends TestCase |
||
9 | { |
||
10 | /** @var BaseConsumer */ |
||
11 | protected $consumer; |
||
12 | |||
13 | protected function setUp(): void |
||
14 | { |
||
15 | $amqpConnection = $this->getMockBuilder('\PhpAmqpLib\Connection\AMQPStreamConnection') |
||
16 | ->disableOriginalConstructor() |
||
17 | ->getMock(); |
||
18 | |||
19 | $this->consumer = $this->getMockBuilder('\OldSound\RabbitMqBundle\RabbitMq\BaseConsumer') |
||
|
|||
20 | ->setConstructorArgs([$amqpConnection]) |
||
21 | ->getMockForAbstractClass(); |
||
22 | } |
||
23 | |||
24 | public function testItExtendsBaseAmqpInterface() |
||
25 | { |
||
26 | $this->assertInstanceOf('OldSound\RabbitMqBundle\RabbitMq\BaseAmqp', $this->consumer); |
||
27 | } |
||
28 | |||
29 | public function testItImplementsDequeuerInterface() |
||
30 | { |
||
31 | $this->assertInstanceOf('OldSound\RabbitMqBundle\RabbitMq\DequeuerInterface', $this->consumer); |
||
32 | } |
||
33 | |||
34 | public function testItsIdleTimeoutIsMutable() |
||
39 | } |
||
40 | |||
41 | public function testItsIdleTimeoutExitCodeIsMutable() |
||
46 | } |
||
47 | } |
||
48 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..