failing test for HEAD StreamedResponse requests

This commit is contained in:
Kris Wallsmith 2012-06-05 22:28:15 -07:00
parent 1541fe26e4
commit 280fc0578a

View File

@ -50,6 +50,14 @@ class StreamedResponseTest extends \PHPUnit_Framework_TestCase
$this->assertEquals('no-cache, private', $response->headers->get('Cache-Control'));
}
public function testPrepareWithHeadRequest()
{
$response = new StreamedResponse(function () { echo 'foo'; });
$request = Request::create('/', 'HEAD');
$response->prepare($request);
}
public function testSendContent()
{
$called = 0;