@@ -32,7 +32,7 @@ public function testConstruction()
32
32
$ response = BinaryFileResponse::create ($ file , 404 , array (), true , ResponseHeaderBag::DISPOSITION_INLINE );
33
33
$ this ->assertEquals (404 , $ response ->getStatusCode ());
34
34
$ this ->assertFalse ($ response ->headers ->has ('ETag ' ));
35
- $ this ->assertEquals ('inline; filename=" README.md" ' , $ response ->headers ->get ('Content-Disposition ' ));
35
+ $ this ->assertEquals ('inline; filename=README.md ' , $ response ->headers ->get ('Content-Disposition ' ));
36
36
}
37
37
38
38
public function testConstructWithNonAsciiFilename ()
@@ -66,7 +66,7 @@ public function testSetContentDispositionGeneratesSafeFallbackFilename()
66
66
$ response = new BinaryFileResponse (__FILE__ );
67
67
$ response ->setContentDisposition (ResponseHeaderBag::DISPOSITION_ATTACHMENT , 'föö.html ' );
68
68
69
- $ this ->assertSame ('attachment; filename=" f__.html" ; filename*=utf-8 \'\'f%C3%B6%C3%B6.html ' , $ response ->headers ->get ('Content-Disposition ' ));
69
+ $ this ->assertSame ('attachment; filename=f__.html; filename*=utf-8 \'\'f%C3%B6%C3%B6.html ' , $ response ->headers ->get ('Content-Disposition ' ));
70
70
}
71
71
72
72
public function testSetContentDispositionGeneratesSafeFallbackFilenameForWronglyEncodedFilename ()
@@ -77,7 +77,7 @@ public function testSetContentDispositionGeneratesSafeFallbackFilenameForWrongly
77
77
$ response ->setContentDisposition (ResponseHeaderBag::DISPOSITION_ATTACHMENT , $ iso88591EncodedFilename );
78
78
79
79
// the parameter filename* is invalid in this case (rawurldecode('f%F6%F6') does not provide a UTF-8 string but an ISO-8859-1 encoded one)
80
- $ this ->assertSame ('attachment; filename=" f__.html" ; filename*=utf-8 \'\'f%F6%F6.html ' , $ response ->headers ->get ('Content-Disposition ' ));
80
+ $ this ->assertSame ('attachment; filename=f__.html; filename*=utf-8 \'\'f%F6%F6.html ' , $ response ->headers ->get ('Content-Disposition ' ));
81
81
}
82
82
83
83
/**
0 commit comments