diff --git a/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php b/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php index f52badf6a4..0dfe651600 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php @@ -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 */