You are here

public function StreamedResponseTest::testSendContent in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Tests/StreamedResponseTest.php \Symfony\Component\HttpFoundation\Tests\StreamedResponseTest::testSendContent()

File

vendor/symfony/http-foundation/Tests/StreamedResponseTest.php, line 68

Class

StreamedResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testSendContent() {
  $called = 0;
  $response = new StreamedResponse(function () use (&$called) {
    ++$called;
  });
  $response
    ->sendContent();
  $this
    ->assertEquals(1, $called);
  $response
    ->sendContent();
  $this
    ->assertEquals(1, $called);
}