StreamedResponseTest

This commit is contained in:
Michal Piotrowski 2012-09-01 07:57:21 -04:00
parent 2cf50b7801
commit b89d4eeb23
1 changed files with 10 additions and 1 deletions

View File

@ -76,10 +76,19 @@ class StreamedResponseTest extends \PHPUnit_Framework_TestCase
*/
public function testSendContentWithNonCallable()
{
$response = new StreamedResponse('foobar');
$response = new StreamedResponse(null);
$response->sendContent();
}
/**
* @expectedException \LogicException
*/
public function testSetCallbackNonCallable()
{
$response = new StreamedResponse(null);
$response->setCallback(null);
}
/**
* @expectedException \LogicException
*/