public function InlineFragmentRendererTest::testRenderWithControllerReference in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
Namespace
Symfony\Component\HttpKernel\Tests\FragmentCode
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());
}