public function ResponseTest::testPrepareDoesNothingIfRequestFormatIsNotDefined

File

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

Class

ResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testPrepareDoesNothingIfRequestFormatIsNotDefined() {
  $response = new Response('foo');
  $response
    ->prepare(new Request());
  $this
    ->assertEquals('text/html; charset=UTF-8', $response->headers
    ->get('content-type'));
}