private function InlineFragmentRendererTest::getKernel

5 calls to InlineFragmentRendererTest::getKernel()
InlineFragmentRendererTest::testRender in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php
InlineFragmentRendererTest::testRenderExceptionIgnoreErrors in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php
InlineFragmentRendererTest::testRenderExceptionIgnoreErrorsWithAlt in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php
InlineFragmentRendererTest::testRenderExceptionNoIgnoreErrors in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php
@expectedException \RuntimeException
InlineFragmentRendererTest::testRenderWithControllerReference in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php

File

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

Class

InlineFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Fragment\Tests\FragmentRenderer

Code

private function getKernel($returnValue) {
  $kernel = $this
    ->getMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface');
  $kernel
    ->expects($this
    ->any())
    ->method('handle')
    ->will($returnValue);
  return $kernel;
}