You are here

public function ResponseTest::testGetHeaders in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/browser-kit/Tests/ResponseTest.php \Symfony\Component\BrowserKit\Tests\ResponseTest::testGetHeaders()

File

vendor/symfony/browser-kit/Tests/ResponseTest.php, line 30

Class

ResponseTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testGetHeaders() {
  $response = new Response('foo', 200, array(
    'foo' => 'bar',
  ));
  $this
    ->assertEquals(array(
    'foo' => 'bar',
  ), $response
    ->getHeaders(), '->getHeaders() returns the headers of the response');
}