| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function testGetDefaultMessageMapper() |
||
| 11 | { |
||
| 12 | $callable = function () { |
||
| 13 | |||
| 14 | }; |
||
| 15 | $queue = $this->prophesize(Queue::class); |
||
| 16 | |||
| 17 | $consumerCallback = new ConsumerCallback($callable, $queue->reveal()); |
||
| 18 | |||
| 19 | static::assertInstanceOf(MessageMapper::class, $consumerCallback->getMessageMapper()); |
||
| 20 | |||
| 21 | $messageMapper = $this->prophesize(MessageMapper::class); |
||
| 22 | $consumerCallback->setMessageMapper($messageMapper->reveal()); |
||
| 23 | |||
| 24 | static::assertSame($messageMapper->reveal(), $consumerCallback->getMessageMapper()); |
||
| 25 | } |
||
| 26 | |||
| 48 |