You are here

public function HIncludeFragmentRendererTest::testRenderWithUri in Zircon Profile 8

Same name and namespace in other branches
  1. 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

HIncludeFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

Code

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());
}