You are here

public function HIncludeFragmentRendererTest::testRenderWithControllerAndSigner in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/Fragment/HIncludeFragmentRendererTest.php \Symfony\Component\HttpKernel\Tests\Fragment\HIncludeFragmentRendererTest::testRenderWithControllerAndSigner()

File

vendor/symfony/http-kernel/Tests/Fragment/HIncludeFragmentRendererTest.php, line 30

Class

HIncludeFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

Code

public function testRenderWithControllerAndSigner() {
  $strategy = new HIncludeFragmentRenderer(null, new UriSigner('foo'));
  $this
    ->assertEquals('<hx:include src="/_fragment?_path=_format%3Dhtml%26_locale%3Den%26_controller%3Dmain_controller&amp;_hash=BP%2BOzCD5MRUI%2BHJpgPDOmoju00FnzLhP3TGcSHbbBLs%3D"></hx:include>', $strategy
    ->render(new ControllerReference('main_controller', array(), array()), Request::create('/'))
    ->getContent());
}