public function ResponseTest::testSendContent

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/ResponseTest.php, line 435

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);
}