| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | function test() |
||
| 8 | { |
||
| 9 | $config = $this->app->get(Config::class); |
||
| 10 | $this->assertInstanceOf(Config::class, $config); |
||
| 11 | |||
| 12 | $this->assertSame($config['administrator.name'], 'nekufa'); |
||
| 13 | $this->assertSame($config['administrator'], ['name' => 'nekufa']); |
||
| 14 | |||
| 15 | $config['administrator.email'] = '[email protected]'; |
||
| 16 | |||
| 17 | $this->assertSame($config['administrator'], [ |
||
| 18 | 'name' => 'nekufa', |
||
| 19 | 'email' => '[email protected]', |
||
| 20 | ]); |
||
| 21 | } |
||
| 22 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.