You are here

private function InlineFragmentRendererTest::getKernelExpectingRequest in Zircon Profile 8

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

Creates a Kernel expecting a request equals to $request Allows delta in comparison in case REQUEST_TIME changed by 1 second.

3 calls to InlineFragmentRendererTest::getKernelExpectingRequest()
InlineFragmentRendererTest::testESIHeaderIsKeptInSubrequest in vendor/symfony/http-kernel/Tests/Fragment/InlineFragmentRendererTest.php
InlineFragmentRendererTest::testRenderWithObjectsAsAttributes in vendor/symfony/http-kernel/Tests/Fragment/InlineFragmentRendererTest.php
InlineFragmentRendererTest::testRenderWithTrustedHeaderDisabled in vendor/symfony/http-kernel/Tests/Fragment/InlineFragmentRendererTest.php

File

vendor/symfony/http-kernel/Tests/Fragment/InlineFragmentRendererTest.php, line 131

Class

InlineFragmentRendererTest

Namespace

Symfony\Component\HttpKernel\Tests\Fragment

Code

private function getKernelExpectingRequest(Request $request) {
  $kernel = $this
    ->getMock('Symfony\\Component\\HttpKernel\\HttpKernelInterface');
  $kernel
    ->expects($this
    ->any())
    ->method('handle')
    ->with($this
    ->equalTo($request, 1));
  return $kernel;
}