Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function testApplication() |
||
10 | { |
||
11 | $this->assertNotNull($this->app); |
||
12 | $this->assertInstanceOf(Application::class, $this->app); |
||
13 | $this->assertSame($this->app, $this->app->get(Application::class)); |
||
14 | |||
15 | $container = $this->app->get(Container::class); |
||
16 | $this->assertInstanceOf(Container::class, $container); |
||
17 | $this->assertSame($this->app, $container->get(Application::class)); |
||
18 | } |
||
19 | |||
28 |
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.