public function FragmentHandlerTest::testRender

File

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

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',
  )));
}