Inheritance: extends Twig_Extension, implements Twig_Extension_GlobalsInterface
 public function testRemoveWww()
 {
     $extension = new WallabagExtension();
     $this->assertEquals('lemonde.fr', $extension->removeWww('www.lemonde.fr'));
     $this->assertEquals('lemonde.fr', $extension->removeWww('lemonde.fr'));
     $this->assertEquals('gist.github.com', $extension->removeWww('gist.github.com'));
 }
 public function testRemoveWww()
 {
     $entryRepository = $this->getMockBuilder('Wallabag\\CoreBundle\\Repository\\EntryRepository')->disableOriginalConstructor()->getMock();
     $tagRepository = $this->getMockBuilder('Wallabag\\CoreBundle\\Repository\\TagRepository')->disableOriginalConstructor()->getMock();
     $tokenStorage = $this->getMockBuilder('Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface')->disableOriginalConstructor()->getMock();
     $translator = $this->getMockBuilder('Symfony\\Component\\Translation\\TranslatorInterface')->disableOriginalConstructor()->getMock();
     $extension = new WallabagExtension($entryRepository, $tagRepository, $tokenStorage, 0, $translator);
     $this->assertEquals('lemonde.fr', $extension->removeWww('www.lemonde.fr'));
     $this->assertEquals('lemonde.fr', $extension->removeWww('lemonde.fr'));
     $this->assertEquals('gist.github.com', $extension->removeWww('gist.github.com'));
 }