| Conditions | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function testAnonClass() |
||
| 35 | { |
||
| 36 | $plugin = new class() implements TwigTemplatePluginInterface { |
||
| 37 | use TwigTemplatePluginTrait; |
||
| 38 | }; |
||
| 39 | $ref = new \ReflectionObject($plugin); |
||
| 40 | |||
| 41 | $this->assertNull($plugin->getTwigNamespace()); |
||
| 42 | $this->assertEquals([ |
||
| 43 | \dirname($ref->getFileName()).'/templates', |
||
| 44 | ], |
||
| 45 | $plugin->getTwigTemplatePaths()); |
||
| 46 | } |
||
| 53 |