You are here

public function EsiFragmentRendererTest::testRenderAltControllerReferenceWithoutSignerThrowsException in Zircon Profile 8.0

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

@expectedException \LogicException

File

vendor/symfony/http-kernel/Tests/Fragment/EsiFragmentRendererTest.php, line 82

Class

EsiFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

Code

public function testRenderAltControllerReferenceWithoutSignerThrowsException() {
  $strategy = new EsiFragmentRenderer(new Esi(), $this
    ->getInlineStrategy());
  $request = Request::create('/');
  $request
    ->setLocale('fr');
  $request->headers
    ->set('Surrogate-Capability', 'ESI/1.0');
  $strategy
    ->render('/', $request, array(
    'alt' => new ControllerReference('alt_controller'),
  ));
}