Issues (142)

Spec/Report/HtmlSpec.php (1 issue)

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\AbstractReportProcessor;
17
use Doyo\Bridge\CodeCoverage\Report\Html;
18
use Doyo\Bridge\CodeCoverage\Report\ReportProcessorInterface;
19
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...
20
21
class HtmlSpec extends ObjectBehavior
22
{
23
    protected $tempDir;
24
25
    public function let()
26
    {
27
        $this->tempDir = sys_get_temp_dir().'/doyo/test-report';
28
29
        $options = [
30
            'target'         => $this->tempDir,
31
            'type'           => 'html',
32
            'fileSystemType' => 'dir',
33
            'lowUpperBound'  => 20,
34
            'highLowerBound' => 90,
35
            'generator'      => 'some-generator',
36
        ];
37
        $this->beConstructedWith($options);
38
    }
39
40
    public function it_is_initializable()
41
    {
42
        $this->shouldHaveType(Html::class);
43
    }
44
45
    public function it_should_be_a_report_processor()
46
    {
47
        $this->shouldBeAnInstanceOf(AbstractReportProcessor::class);
48
        $this->shouldImplement(ReportProcessorInterface::class);
49
    }
50
51
    public function it_should_be_create_processor_properly()
52
    {
53
        $this->getType()->shouldReturn('html');
54
        $this->getTarget()->shouldReturn($this->tempDir);
55
    }
56
}
57