public function ResponseTest::testSendContent in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\HttpFoundation\TestsCode
public function testSendContent() {
$response = new Response('test response rendering', 200);
ob_start();
$response
->sendContent();
$string = ob_get_clean();
$this
->assertContains('test response rendering', $string);
}