public function StreamedResponseTest::testSendContent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/StreamedResponseTest.php \Symfony\Component\HttpFoundation\Tests\StreamedResponseTest::testSendContent()
File
- vendor/
symfony/ http-foundation/ Tests/ StreamedResponseTest.php, line 68
Class
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testSendContent() {
$called = 0;
$response = new StreamedResponse(function () use (&$called) {
++$called;
});
$response
->sendContent();
$this
->assertEquals(1, $called);
$response
->sendContent();
$this
->assertEquals(1, $called);
}