Skip to content

Commit b89d4ee

Browse files
author
Michal Piotrowski
committed
StreamedResponseTest
1 parent 2cf50b7 commit b89d4ee

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,19 @@ public function testSendContent()
7676
*/
7777
public function testSendContentWithNonCallable()
7878
{
79-
$response = new StreamedResponse('foobar');
79+
$response = new StreamedResponse(null);
8080
$response->sendContent();
8181
}
8282

83+
/**
84+
* @expectedException \LogicException
85+
*/
86+
public function testSetCallbackNonCallable()
87+
{
88+
$response = new StreamedResponse(null);
89+
$response->setCallback(null);
90+
}
91+
8392
/**
8493
* @expectedException \LogicException
8594
*/

0 commit comments

Comments
 (0)