You are here

public function InlineFragmentRendererTest::testRenderWithControllerReference in Zircon Profile 8.0

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

File

vendor/symfony/http-kernel/Tests/Fragment/InlineFragmentRendererTest.php, line 31

Class

InlineFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

Code

public function testRenderWithControllerReference() {
  $strategy = new InlineFragmentRenderer($this
    ->getKernel($this
    ->returnValue(new Response('foo'))));
  $this
    ->assertEquals('foo', $strategy
    ->render(new ControllerReference('main_controller', array(), array()), Request::create('/'))
    ->getContent());
}