You are here

private function EsiFragmentRendererTest::getInlineStrategy 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::getInlineStrategy()
6 calls to EsiFragmentRendererTest::getInlineStrategy()
EsiFragmentRendererTest::testRender in vendor/symfony/http-kernel/Tests/Fragment/EsiFragmentRendererTest.php
EsiFragmentRendererTest::testRenderAltControllerReferenceWithoutSignerThrowsException in vendor/symfony/http-kernel/Tests/Fragment/EsiFragmentRendererTest.php
@expectedException \LogicException
EsiFragmentRendererTest::testRenderControllerReference in vendor/symfony/http-kernel/Tests/Fragment/EsiFragmentRendererTest.php
EsiFragmentRendererTest::testRenderControllerReferenceWithoutSignerThrowsException in vendor/symfony/http-kernel/Tests/Fragment/EsiFragmentRendererTest.php
@expectedException \LogicException
EsiFragmentRendererTest::testRenderFallbackToInlineStrategyIfEsiNotSupported in vendor/symfony/http-kernel/Tests/Fragment/EsiFragmentRendererTest.php

... See full list

File

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

Class

EsiFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

Code

private function getInlineStrategy($called = false) {
  $inline = $this
    ->getMockBuilder('Symfony\\Component\\HttpKernel\\Fragment\\InlineFragmentRenderer')
    ->disableOriginalConstructor()
    ->getMock();
  if ($called) {
    $inline
      ->expects($this
      ->once())
      ->method('render');
  }
  return $inline;
}