merged branch eventhorizonpl/100ptc_component_httpfundation_p4 (PR #5415)

Commits
-------

b89d4ee StreamedResponseTest

Discussion
----------

StreamedResponseTest

Hi,

This patch adds one test to StreamedResponseTest and fixes another. StreamedResponse has 100% test coverage.

Best regards,
Michal
This commit is contained in:
Fabien Potencier 2012-09-04 14:18:30 +02:00
commit ee51ca8c16
1 changed files with 10 additions and 1 deletions

View File

@ -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
*/