Total Complexity | 6 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
16 | class ContainerTest extends PHPUnit_Framework_TestCase |
||
17 | { |
||
18 | private ContainerInterface $primate; |
||
19 | |||
20 | protected function setUp(): void |
||
21 | { |
||
22 | require "./vendor/autoload.php"; |
||
23 | |||
24 | $this->primate = new Container([ContainerTest::class => $this]); |
||
25 | } |
||
26 | |||
27 | public function testInstances() |
||
28 | { |
||
29 | $this->assertInstanceOf(Container::class, $this->primate); |
||
30 | } |
||
31 | |||
32 | public function testGetInvalidArgumentException(): void |
||
33 | { |
||
34 | $this->expectException(\InvalidArgumentException::class); |
||
35 | $this->primate->get("wrongKey"); |
||
36 | } |
||
37 | |||
38 | public function testSet(): void |
||
39 | { |
||
40 | $this->assertInstanceOf(ContainerTest::class, $this->primate->get(ContainerTest::class)); |
||
41 | } |
||
42 | |||
43 | public function testGetArrayHasKey(): void |
||
44 | { |
||
45 | $this->assertArrayHasKey(ContainerTest::class, $this->primate->get()); |
||
46 | } |
||
47 | |||
48 | |||
49 | public function testHas(): void |
||
52 | } |
||
53 | } |
||
54 |
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