[HttpFoundation] Add a dependency on the mbstring polyfill

This commit is contained in:
Jakub Zalas 2016-03-06 16:14:09 +00:00 committed by Nicolas Grekas
parent 4f224ef4ab
commit 59b9f156a9
4 changed files with 10 additions and 2 deletions

View File

@ -20,6 +20,7 @@
"doctrine/common": "~2.4", "doctrine/common": "~2.4",
"paragonie/random_compat": "~1.0", "paragonie/random_compat": "~1.0",
"symfony/polyfill-apcu": "~1.1", "symfony/polyfill-apcu": "~1.1",
"symfony/polyfill-mbstring": "~1.1",
"twig/twig": "~1.23|~2.0", "twig/twig": "~1.23|~2.0",
"psr/log": "~1.0" "psr/log": "~1.0"
}, },

View File

@ -36,7 +36,13 @@ class BinaryFileResponseTest extends ResponseTestCase
public function testConstructWithNonAsciiFilename() public function testConstructWithNonAsciiFilename()
{ {
new BinaryFileResponse(__DIR__.'/Fixtures/föö.html', 200, array(), true, 'attachment'); touch(sys_get_temp_dir().'/fööö.html');
$response = new BinaryFileResponse(sys_get_temp_dir().'/fööö.html', 200, array(), true, 'attachment');
@unlink(sys_get_temp_dir().'/fööö.html');
$this->assertSame('fööö.html', $response->getFile()->getFilename());
} }
/** /**

View File

@ -16,7 +16,8 @@
} }
], ],
"require": { "require": {
"php": ">=5.3.3" "php": ">=5.3.3",
"symfony/polyfill-mbstring": "~1.1"
}, },
"autoload": { "autoload": {
"psr-0": { "Symfony\\Component\\HttpFoundation\\": "" }, "psr-0": { "Symfony\\Component\\HttpFoundation\\": "" },