Issues (142)

Spec/Report/CloverSpec.php (2 issues)

Labels
Severity
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\ReportProcessorInterface;
18
use PhpSpec\ObjectBehavior;
0 ignored issues
show
The type PhpSpec\ObjectBehavior 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
19
20
class CloverSpec extends ObjectBehavior
21
{
22
    public function it_is_initializable()
23
    {
24
        $this->shouldHaveType(Clover::class);
25
    }
26
27
    public function it_should_be_coverage_clover_report()
28
    {
29
        $this->shouldBeAnInstanceOf(ReportProcessorInterface::class);
30
        $this->getProcessorClass()->shouldReturn(\SebastianBergmann\CodeCoverage\Report\Clover::class);
0 ignored issues
show
The type SebastianBergmann\CodeCoverage\Report\Clover 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. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
31
        $this->getOutputType()->shouldReturn(Clover::OUTPUT_FILE);
32
        $this->getType()->shouldReturn('clover');
33
    }
34
}
35