Skip to content

Commit

Permalink
StreamedResponseTest
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Piotrowski committed Sep 1, 2012
1 parent 2cf50b7 commit b89d4ee
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -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
*/
Expand Down

0 comments on commit b89d4ee

Please sign in to comment.