| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function test_discover() |
||
| 18 | { |
||
| 19 | $dispatcher = $this->newMockDispatcher(); |
||
| 20 | |||
| 21 | $provider = new RegisterDiscoveredEvents($dispatcher); |
||
| 22 | $provider->addDiscoveryPath(TEST_FIXTURE_PATH . '/Listeners'); |
||
| 23 | $provider->register(); |
||
| 24 | |||
| 25 | $listeners = $dispatcher->getListeners(get_class(new Event())); |
||
| 26 | |||
| 27 | self::assertGreaterThanOrEqual(2, count($listeners)); |
||
| 28 | } |
||
| 42 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths