Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function testReturnsResponse() |
||
33 | { |
||
34 | $this->assertInstanceOf( |
||
35 | // Response::class, // 5.4 < php |
||
36 | 'Symfony\Component\HttpFoundation\Response', |
||
37 | (new EngineAsArgumentController())->__invoke(new TwigEngine( |
||
38 | new Twig_Environment(new Twig_Loader_Array(['index.html.twig' => 'Hello World!'])), |
||
39 | new TemplateNameParser() |
||
40 | )) |
||
41 | ); |
||
42 | } |
||
43 | } |
||
47 |
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.