Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0207ec

Browse files
committed
Merge branch 'test-windows-encoding'
* test-windows-encoding: Test questionhelper input encoding on windows
2 parents7bac792 +2561982 commita0207ec

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
--TEST--
2+
QuestionHelper should parse special chars on windows input.
3+
--STDIN--
4+
à é
5+
--FILE--
6+
<?php
7+
8+
useSymfony\Component\Console\Input\ArgvInput;
9+
useSymfony\Component\Console\Output\ConsoleOutput;
10+
useSymfony\Component\Console\Helper\QuestionHelper;
11+
useSymfony\Component\Console\Question\Question;
12+
13+
$vendor =__DIR__;
14+
while (!file_exists($vendor.'/vendor')) {
15+
$vendor =dirname($vendor);
16+
}
17+
require$vendor.'/vendor/autoload.php';
18+
19+
$output =newConsoleOutput();
20+
$output->write((newQuestionHelper())->ask(newArgvInput(),$output,newQuestion("Special chars\n")));
21+
exit(0);
22+
?>
23+
--EXPECTF--
24+
Special chars
25+
à é

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp