protected function SsiTest::getCache in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-kernel/Tests/HttpCache/SsiTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\SsiTest::getCache()
4 calls to SsiTest::getCache()
- SsiTest::testHandle in vendor/
symfony/ http-kernel/ Tests/ HttpCache/ SsiTest.php - SsiTest::testHandleWhenResponseIsNot200 in vendor/
symfony/ http-kernel/ Tests/ HttpCache/ SsiTest.php - @expectedException \RuntimeException
- SsiTest::testHandleWhenResponseIsNot200AndAltIsPresent in vendor/
symfony/ http-kernel/ Tests/ HttpCache/ SsiTest.php - SsiTest::testHandleWhenResponseIsNot200AndErrorsAreIgnored in vendor/
symfony/ http-kernel/ Tests/ HttpCache/ SsiTest.php
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ SsiTest.php, line 193
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;
}