| Total Complexity | 4 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | class RegistryTest extends PHPUnit_Framework_TestCase |
||
| 19 | { |
||
| 20 | |||
| 21 | protected function setUp(): void |
||
| 23 | |||
| 24 | } |
||
| 25 | |||
| 26 | public function testRegistry() |
||
| 27 | { |
||
| 28 | Registry::setData('stdClass', new stdClass()); |
||
| 29 | $this->assertInstanceOf(stdClass::class, Registry::getData('stdClass')); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function testSetDataException() |
||
| 33 | { |
||
| 34 | $this->expectException(InvalidArgumentException::class); |
||
| 35 | Registry::setData('StdClass', new stdClass()); |
||
| 36 | } // @codeCoverageIgnore |
||
| 37 | |||
| 38 | public function testGetDataException() |
||
| 42 | } // @codeCoverageIgnore |
||
| 43 | } |
||
| 44 |
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