| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function testSubscribeHandlers(): void |
||
| 26 | { |
||
| 27 | $io = $this->createIOMock(); |
||
| 28 | $config = $this->createConfigMock(); |
||
| 29 | $repo = $this->createRepositoryMock(); |
||
| 30 | $handler = $this->createEventHandlerMock(); |
||
| 31 | |||
| 32 | $dispatcher = new Dispatcher($io, $config, $repo); |
||
| 33 | $dispatcher->subscribeHandlers([ |
||
| 34 | 'onHookFailure' => [$handler] |
||
| 35 | ]); |
||
| 36 | |||
| 37 | $dispatcher->dispatch('onHookFailure'); |
||
| 38 | } |
||
| 59 |