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\Report; |
||
15 | |||
16 | use Doyo\Bridge\CodeCoverage\Report\Clover; |
||
17 | use Doyo\Bridge\CodeCoverage\Report\Crap4j; |
||
18 | use Doyo\Bridge\CodeCoverage\Report\ReportProcessorInterface; |
||
19 | use PhpSpec\ObjectBehavior; |
||
0 ignored issues
–
show
|
|||
20 | |||
21 | class Crap4jSpec extends ObjectBehavior |
||
22 | { |
||
23 | public function it_is_initializable() |
||
24 | { |
||
25 | $this->shouldHaveType(Crap4j::class); |
||
26 | } |
||
27 | |||
28 | public function it_should_be_coverage_crap4j_report() |
||
29 | { |
||
30 | $this->shouldBeAnInstanceOf(ReportProcessorInterface::class); |
||
31 | $this->getProcessorClass()->shouldReturn(\SebastianBergmann\CodeCoverage\Report\Crap4j::class); |
||
0 ignored issues
–
show
The type
SebastianBergmann\CodeCoverage\Report\Crap4j was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
32 | $this->getOutputType()->shouldReturn(Clover::OUTPUT_FILE); |
||
33 | $this->getType()->shouldReturn('crap4j'); |
||
34 | } |
||
35 | } |
||
36 |
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