| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function testListenerWithInterfaceQueued() |
||
| 17 | { |
||
| 18 | $event = Event::named('preFoo'); |
||
| 19 | |||
| 20 | $dispatcher = $this->newMockDispatcher(); |
||
| 21 | $dispatcher->shouldReceive('queueHandler')->with(QueueListener::class, 'handle', $event); |
||
| 22 | |||
| 23 | $listener = $dispatcher->makeListener(QueueListener::class); |
||
| 24 | self::assertInstanceOf(Closure::class, $listener); |
||
| 25 | |||
| 26 | $listener($event); |
||
| 27 | } |
||
| 29 |