You are here

public function ResponseTest::testSend 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::testSend()

File

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

Class

ResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testSend() {
  $response = new Response();
  $responseSend = $response
    ->send();
  $this
    ->assertObjectHasAttribute('headers', $responseSend);
  $this
    ->assertObjectHasAttribute('content', $responseSend);
  $this
    ->assertObjectHasAttribute('version', $responseSend);
  $this
    ->assertObjectHasAttribute('statusCode', $responseSend);
  $this
    ->assertObjectHasAttribute('statusText', $responseSend);
  $this
    ->assertObjectHasAttribute('charset', $responseSend);
}