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:
commit
ee51ca8c16
|
@ -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
|
||||
*/
|
||||
|
|
Reference in New Issue