protected function EsiTest::getCache in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/HttpCache/EsiTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\EsiTest::getCache()
4 calls to EsiTest::getCache()
- EsiTest::testHandle in vendor/
symfony/ http-kernel/ Tests/ HttpCache/ EsiTest.php - EsiTest::testHandleWhenResponseIsNot200 in vendor/
symfony/ http-kernel/ Tests/ HttpCache/ EsiTest.php - @expectedException \RuntimeException
- EsiTest::testHandleWhenResponseIsNot200AndAltIsPresent in vendor/
symfony/ http-kernel/ Tests/ HttpCache/ EsiTest.php - EsiTest::testHandleWhenResponseIsNot200AndErrorsAreIgnored in vendor/
symfony/ http-kernel/ Tests/ HttpCache/ EsiTest.php
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ EsiTest.php, line 226
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
protected function getCache($request, $response) {
$cache = $this
->getMock('Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache', array(
'getRequest',
'handle',
), array(), '', false);
$cache
->expects($this
->any())
->method('getRequest')
->will($this
->returnValue($request));
if (is_array($response)) {
$cache
->expects($this
->any())
->method('handle')
->will(call_user_func_array(array(
$this,
'onConsecutiveCalls',
), $response));
}
else {
$cache
->expects($this
->any())
->method('handle')
->will($this
->returnValue($response));
}
return $cache;
}