StreamedResponseTest
This commit is contained in:
parent
2cf50b7801
commit
b89d4eeb23
|
@ -76,10 +76,19 @@ class StreamedResponseTest extends \PHPUnit_Framework_TestCase
|
||||||
*/
|
*/
|
||||||
public function testSendContentWithNonCallable()
|
public function testSendContentWithNonCallable()
|
||||||
{
|
{
|
||||||
$response = new StreamedResponse('foobar');
|
$response = new StreamedResponse(null);
|
||||||
$response->sendContent();
|
$response->sendContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @expectedException \LogicException
|
||||||
|
*/
|
||||||
|
public function testSetCallbackNonCallable()
|
||||||
|
{
|
||||||
|
$response = new StreamedResponse(null);
|
||||||
|
$response->setCallback(null);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @expectedException \LogicException
|
* @expectedException \LogicException
|
||||||
*/
|
*/
|
||||||
|
|
Reference in New Issue