| Total Complexity | 4 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class OnIdleEventTest extends TestCase |
||
| 15 | { |
||
| 16 | protected function getConsumer() |
||
| 17 | { |
||
| 18 | return new Consumer( |
||
| 19 | $this->getMockBuilder('\PhpAmqpLib\Connection\AMQPStreamConnection') |
||
| 20 | ->disableOriginalConstructor() |
||
| 21 | ->getMock(), |
||
| 22 | $this->getMockBuilder('\PhpAmqpLib\Channel\AMQPChannel') |
||
| 23 | ->disableOriginalConstructor() |
||
| 24 | ->getMock() |
||
| 25 | ); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function testShouldAllowGetConsumerSetInConstructor() |
||
| 29 | { |
||
| 30 | $consumer = $this->getConsumer(); |
||
| 31 | $event = new OnIdleEvent($consumer); |
||
| 32 | |||
| 33 | $this->assertSame($consumer, $event->getConsumer()); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function testShouldSetForceStopToTrueInConstructor() |
||
| 42 | } |
||
| 43 | |||
| 44 | public function testShouldReturnPreviouslySetForceStop() |
||
| 54 | } |
||
| 55 | } |
||
| 56 |