| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 16 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | View Code Duplication | public function testArrayReturnsResponse() |
|
| 47 | { |
||
| 48 | $this->assertInstanceOf( |
||
| 49 | Response::class, |
||
| 50 | (new VariadicController(new TwigEngine( |
||
| 51 | new Twig_Environment(new Twig_Loader_Array([ |
||
| 52 | 'index.html.twig' => '<ul>{% for item in 0 %}<li>{{ item }}</li>{% endfor %}</ul>', |
||
| 53 | ])), |
||
| 54 | new TemplateNameParser() |
||
| 55 | )))->__invoke([ |
||
| 56 | 'One', |
||
| 57 | 'Two', |
||
| 58 | 'Three', |
||
| 59 | ]) |
||
| 60 | ); |
||
| 61 | } |
||
| 62 | } |
||
| 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.