From b89d4eeb238877d41deb3b28c553a124840b50ed Mon Sep 17 00:00:00 2001 From: Michal Piotrowski Date: Sat, 1 Sep 2012 07:57:21 -0400 Subject: [PATCH] StreamedResponseTest --- .../HttpFoundation/Tests/StreamedResponseTest.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php b/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php index f52badf6a4f2..0dfe65160093 100644 --- a/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php +++ b/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php @@ -76,10 +76,19 @@ public function testSendContent() */ 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 */