public function HIncludeFragmentRendererTest::testRenderWithUri in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/Fragment/HIncludeFragmentRendererTest.php \Symfony\Component\HttpKernel\Tests\Fragment\HIncludeFragmentRendererTest::testRenderWithUri()
File
- vendor/
symfony/ http-kernel/ Tests/ Fragment/ HIncludeFragmentRendererTest.php, line 37
Class
Namespace
Symfony\Component\HttpKernel\Tests\FragmentCode
public function testRenderWithUri() {
$strategy = new HIncludeFragmentRenderer();
$this
->assertEquals('<hx:include src="/foo"></hx:include>', $strategy
->render('/foo', Request::create('/'))
->getContent());
$strategy = new HIncludeFragmentRenderer(null, new UriSigner('foo'));
$this
->assertEquals('<hx:include src="/foo"></hx:include>', $strategy
->render('/foo', Request::create('/'))
->getContent());
}