Completed
Pull Request — master (#14)
by Scott
02:44
created

PhanJsonTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1
lcom 1
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 5 1
1
<?php
2
namespace exussum12\CoverageChecker\tests;
3
4
use exussum12\CoverageChecker\PhanJsonLoader;
5
6
class PhanJsonTest extends PhanTextTest
7
{
8
    /** @var  PhanJsonTest */
9
    protected $phan;
10
    protected function setUp()
11
    {
12
        parent::setUp();
13
        $this->phan = new PhanJsonLoader(__DIR__ . '/fixtures/phan.json');
0 ignored issues
show
Documentation Bug introduced by
It seems like new \exussum12\CoverageC... '/fixtures/phan.json') of type object<exussum12\CoverageChecker\PhanJsonLoader> is incompatible with the declared type object<exussum12\Coverag...ker\tests\PhanJsonTest> of property $phan.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
14
    }
15
}
16