1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the doyo/code-coverage project. |
||
5 | * |
||
6 | * (c) Anthonius Munthi <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | declare(strict_types=1); |
||
13 | |||
14 | namespace Spec\Doyo\Bridge\CodeCoverage; |
||
15 | |||
16 | use Doyo\Bridge\CodeCoverage\Event\CoverageEvent; |
||
17 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
||
0 ignored issues
–
show
|
|||
18 | |||
19 | class TestSubscriber implements EventSubscriberInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var CoverageEvent |
||
23 | */ |
||
24 | private $coverageEvent; |
||
25 | |||
26 | final public static function getSubscribedEvents() |
||
27 | { |
||
28 | return [ |
||
29 | CoverageEvent::refresh => 'refresh', |
||
30 | CoverageEvent::beforeStart => 'beforeStart', |
||
31 | CoverageEvent::start => 'start', |
||
32 | CoverageEvent::stop => 'stop', |
||
33 | CoverageEvent::complete => 'complete', |
||
34 | ]; |
||
35 | } |
||
36 | |||
37 | public function beforeStart(CoverageEvent $event) |
||
38 | { |
||
39 | } |
||
40 | |||
41 | public function refresh(CoverageEvent $event) |
||
42 | { |
||
43 | $this->coverageEvent = $event; |
||
44 | } |
||
45 | |||
46 | public function start(CoverageEvent $event) |
||
47 | { |
||
48 | $this->coverageEvent = $event; |
||
49 | } |
||
50 | |||
51 | public function stop(CoverageEvent $event) |
||
52 | { |
||
53 | $this->coverageEvent = $event; |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @return CoverageEvent |
||
58 | */ |
||
59 | public function getCoverageEvent(): CoverageEvent |
||
60 | { |
||
61 | return $this->coverageEvent; |
||
62 | } |
||
63 | |||
64 | public function complete() |
||
65 | { |
||
66 | } |
||
67 | } |
||
68 |
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