You are here

public function ResponseTest::testSendContent in Zircon Profile 8

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

File

vendor/symfony/http-foundation/Tests/ResponseTest.php, line 608

Class

ResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testSendContent() {
  $response = new Response('test response rendering', 200);
  ob_start();
  $response
    ->sendContent();
  $string = ob_get_clean();
  $this
    ->assertContains('test response rendering', $string);
}