| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 19 | class PrototypeTest extends PHPUnit_Framework_TestCase |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var |
||
| 24 | */ |
||
| 25 | protected $prototype; |
||
| 26 | |||
| 27 | protected function setUp(): void |
||
| 28 | { |
||
| 29 | $this->prototype = new FirstPrototype(); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function testInstances() |
||
| 33 | { |
||
| 34 | $clonedFirstPrototype = $this->getPrototype()->getPrototype(); |
||
| 35 | $this->assertFalse($clonedFirstPrototype === $this->getPrototype()); |
||
| 36 | $this->assertInstanceOf(FirstPrototype::class, $clonedFirstPrototype); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function testCountInstances() |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return mixed |
||
| 50 | */ |
||
| 51 | public function getPrototype() |
||
| 56 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths