| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | View Code Duplication | public function testEmptyReturnsResponse() |
|
| 36 | { |
||
| 37 | $this->assertInstanceOf( |
||
| 38 | Response::class, |
||
| 39 | (new VariadicController(new TwigEngine( |
||
| 40 | new Twig_Environment(new Twig_Loader_Array(['index.html.twig' => 'Hello World!'])), |
||
| 41 | new TemplateNameParser() |
||
| 42 | )))->__invoke() |
||
| 43 | ); |
||
| 44 | } |
||
| 45 | |||
| 66 |
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.