| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 13 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| 1 | <?php  | 
            ||
| 10 | public function testAddExtension()  | 
            ||
| 11 |     { | 
            ||
| 12 | $session = $this->getMock(SessionInterface::class);  | 
            ||
| 13 | $extenstion = new SessionExtension($session);  | 
            ||
| 14 | |||
| 15 |         $loader = $this->getMock('\Twig_LoaderInterface'); | 
            ||
| 16 | |||
| 17 | $twig = new \Twig_Environment($loader);  | 
            ||
| 18 | $twig->addExtension($extenstion);  | 
            ||
| 19 | |||
| 20 |         $this->assertArrayHasKey('session', $twig->getExtensions()); | 
            ||
| 21 |         $this->assertArrayHasKey('session', $twig->getGlobals()); | 
            ||
| 22 | }  | 
            ||
| 23 | }  | 
            ||
| 24 |