public function HIncludeFragmentRendererTest::testRenderWithUri

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Fragment/HIncludeFragmentRendererTest.php, line 44

Class

HIncludeFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Fragment\Tests\FragmentRenderer

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