XMLSpec   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 3 1
A it_should_be_coverage_xml_report() 0 6 1
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 Doyo\Bridge\CodeCoverage\Report\XML;
19
use PhpSpec\ObjectBehavior;
0 ignored issues
show
Bug introduced by
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
use SebastianBergmann\CodeCoverage\Report\Xml\Facade;
0 ignored issues
show
Bug introduced by
The type SebastianBergmann\CodeCoverage\Report\Xml\Facade 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...
21
22
class XMLSpec extends ObjectBehavior
23
{
24
    public function it_is_initializable()
25
    {
26
        $this->shouldHaveType(XML::class);
27
    }
28
29
    public function it_should_be_coverage_xml_report()
30
    {
31
        $this->shouldBeAnInstanceOf(ReportProcessorInterface::class);
32
        $this->getProcessorClass()->shouldReturn(Facade::class);
33
        $this->getOutputType()->shouldReturn(Clover::OUTPUT_DIR);
34
        $this->getType()->shouldReturn('xml');
35
    }
36
}
37