"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "public_html/lists/base/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Tests/StreamedResponseTest.php" between
phplist-3.4.5.tgz and phplist-3.4.6.tgz

About: phpList is a one-way email announcement delivery system for newsletters, publicity lists, notifications, and many other uses (requires PHP and MySQL).

StreamedResponseTest.php  (phplist-3.4.5.tgz):StreamedResponseTest.php  (phplist-3.4.6.tgz)
skipping to change at line 84 skipping to change at line 84
$response = new StreamedResponse(function () use (&$called) { ++$called; }); $response = new StreamedResponse(function () use (&$called) { ++$called; });
$response->sendContent(); $response->sendContent();
$this->assertEquals(1, $called); $this->assertEquals(1, $called);
$response->sendContent(); $response->sendContent();
$this->assertEquals(1, $called); $this->assertEquals(1, $called);
} }
/**
* @expectedException \LogicException
*/
public function testSendContentWithNonCallable() public function testSendContentWithNonCallable()
{ {
$this->expectException('LogicException');
$response = new StreamedResponse(null); $response = new StreamedResponse(null);
$response->sendContent(); $response->sendContent();
} }
/**
* @expectedException \LogicException
*/
public function testSetContent() public function testSetContent()
{ {
$this->expectException('LogicException');
$response = new StreamedResponse(function () { echo 'foo'; }); $response = new StreamedResponse(function () { echo 'foo'; });
$response->setContent('foo'); $response->setContent('foo');
} }
public function testGetContent() public function testGetContent()
{ {
$response = new StreamedResponse(function () { echo 'foo'; }); $response = new StreamedResponse(function () { echo 'foo'; });
$this->assertFalse($response->getContent()); $this->assertFalse($response->getContent());
} }
 End of changes. 4 change blocks. 
6 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)