public function HttpCacheTest::testPassesHeadRequestsThroughDirectlyOnPass in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/HttpCache/HttpCacheTest.php \Symfony\Component\HttpKernel\Tests\HttpCache\HttpCacheTest::testPassesHeadRequestsThroughDirectlyOnPass()
File
- vendor/
symfony/ http-kernel/ Tests/ HttpCache/ HttpCacheTest.php, line 849
Class
Namespace
Symfony\Component\HttpKernel\Tests\HttpCacheCode
public function testPassesHeadRequestsThroughDirectlyOnPass() {
$that = $this;
$this
->setNextResponse(200, array(), 'Hello World', function ($request, $response) use ($that) {
$response
->setContent('');
$response
->setStatusCode(200);
$that
->assertEquals('HEAD', $request
->getMethod());
});
$this
->request('HEAD', '/', array(
'HTTP_EXPECT' => 'something ...',
));
$this
->assertHttpKernelIsCalled();
$this
->assertEquals('', $this->response
->getContent());
}