There was an error while loading. Please reload this page.
1 parent 2cf50b7 commit b89d4eeCopy full SHA for b89d4ee
src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php
@@ -76,10 +76,19 @@ public function testSendContent()
76
*/
77
public function testSendContentWithNonCallable()
78
{
79
- $response = new StreamedResponse('foobar');
+ $response = new StreamedResponse(null);
80
$response->sendContent();
81
}
82
83
+ /**
84
+ * @expectedException \LogicException
85
+ */
86
+ public function testSetCallbackNonCallable()
87
+ {
88
89
+ $response->setCallback(null);
90
+ }
91
+
92
/**
93
* @expectedException \LogicException
94
0 commit comments