Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | abstract class AbstractTest extends TestCase |
||
18 | { |
||
19 | protected $object; |
||
20 | |||
21 | /** |
||
22 | * @return Mock|EventDispatcher |
||
23 | */ |
||
24 | protected function mockDispatcherInContainer() |
||
25 | { |
||
26 | $dispatcher = $this->newMockDispatcher(); |
||
27 | Container::container()->set('events', $dispatcher); |
||
28 | |||
29 | return $dispatcher; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return LegacyMockInterface|Mock|MockInterface|EventDispatcherInterface|EventDispatcher |
||
34 | */ |
||
35 | protected function newMockDispatcher() |
||
41 | } |
||
42 | } |
||
43 |
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