CoverageEventSpec   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A let() 0 6 1
A it_is_initializable() 0 3 1
A its_properties_should_be_mutable() 0 8 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\Event;
15
16
use Doyo\Bridge\CodeCoverage\Console\ConsoleIO;
17
use Doyo\Bridge\CodeCoverage\Environment\RuntimeInterface;
18
use Doyo\Bridge\CodeCoverage\Event\CoverageEvent;
19
use Doyo\Bridge\CodeCoverage\ProcessorInterface;
20
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...
21
22
class CoverageEventSpec extends ObjectBehavior
23
{
24
    public function let(
25
        ProcessorInterface $processor,
26
        ConsoleIO $consoleIO,
27
        RuntimeInterface $runtime
28
    ) {
29
        $this->beConstructedWith($processor, $consoleIO, $runtime);
30
    }
31
32
    public function it_is_initializable()
33
    {
34
        $this->shouldHaveType(CoverageEvent::class);
35
    }
36
37
    public function its_properties_should_be_mutable(
38
        ProcessorInterface $processor,
39
        RuntimeInterface $runtime,
40
        ConsoleIO $consoleIO
41
    ) {
42
        $this->getProcessor()->shouldReturn($processor);
43
        $this->getRuntime()->shouldReturn($runtime);
44
        $this->getConsoleIO()->shouldReturn($consoleIO);
45
    }
46
}
47