From 2561982a586c0fdbaa140245c8a30103ccd959a1 Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Thu, 25 Jun 2020 18:49:10 +0200 Subject: [PATCH] Test questionhelper input encoding on windows --- .../Tests/phpt/windows_input_encoding.phpt | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/Symfony/Component/Console/Tests/phpt/windows_input_encoding.phpt diff --git a/src/Symfony/Component/Console/Tests/phpt/windows_input_encoding.phpt b/src/Symfony/Component/Console/Tests/phpt/windows_input_encoding.phpt new file mode 100644 index 0000000000000..b7b45827bb5ff --- /dev/null +++ b/src/Symfony/Component/Console/Tests/phpt/windows_input_encoding.phpt @@ -0,0 +1,25 @@ +--TEST-- +QuestionHelper should parse special chars on windows input. +--STDIN-- +à é +--FILE-- +write((new QuestionHelper())->ask(new ArgvInput(), $output, new Question("Special chars\n"))); +exit(0); +?> +--EXPECTF-- +Special chars +à é