You are here

public function FragmentHandlerTest::testRender in Zircon Profile 8

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

File

vendor/symfony/http-kernel/Tests/Fragment/FragmentHandlerTest.php, line 65

Class

FragmentHandlerTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

Code

public function testRender() {
  $handler = $this
    ->getHandler($this
    ->returnValue(new Response('foo')), array(
    '/',
    Request::create('/'),
    array(
      'foo' => 'foo',
      'ignore_errors' => true,
    ),
  ));
  $this
    ->assertEquals('foo', $handler
    ->render('/', 'foo', array(
    'foo' => 'foo',
  )));
}