You are here

public function EsiFragmentRendererTest::testRenderControllerReferenceWithoutSignerThrowsException in Zircon Profile 8

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

@expectedException \LogicException

File

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

Class

EsiFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

Code

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