| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | View Code Duplication | public function testCanBeCreated() |
|
| 25 | { |
||
| 26 | $this->assertInstanceOf( |
||
| 27 | VariadicController::class, |
||
| 28 | new VariadicController(new TwigEngine( |
||
| 29 | new Twig_Environment(new Twig_Loader_Array(['index.html.twig' => 'Hello World!'])), |
||
| 30 | new TemplateNameParser() |
||
| 31 | )) |
||
| 32 | ); |
||
| 33 | } |
||
| 34 | |||
| 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.