You are here

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

File

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

Class

ResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

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