public function BinaryFileResponseTest::testAcceptRangeOnUnsafeMethods in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\HttpFoundation\TestsCode
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'));
}