public function testLinkWithFilePath() { $this->assertSame('<a href="/pages/page-2.html" class="foobar">title</a>', $this->extension->link($this->twig, 'pages/page-2', 'title', array('class' => 'foobar'))); }