You are here

public function BinaryFileResponseTest::testAcceptRangeOnUnsafeMethods in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/BinaryFileResponseTest.php \Symfony\Component\HttpFoundation\Tests\BinaryFileResponseTest::testAcceptRangeOnUnsafeMethods()

File

vendor/symfony/http-foundation/Tests/BinaryFileResponseTest.php, line 211

Class

BinaryFileResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testAcceptRangeOnUnsafeMethods() {
  $request = Request::create('/', 'POST');
  $response = BinaryFileResponse::create(__DIR__ . '/File/Fixtures/test.gif', 200, array(
    'Content-Type' => 'application/octet-stream',
  ));
  $response
    ->prepare($request);
  $this
    ->assertEquals('none', $response->headers
    ->get('Accept-Ranges'));
}