diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-20 07:53:15 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-20 07:53:15 +0900 |
| commit | a9dc11a1a0d8d442ab85b3eeb8791f2a8069d528 (patch) | |
| tree | 81db9410222fd93d62630108a2bc35fcf6d81465 /crates/shirabe | |
| parent | 3e5c6ce0bfc7e1e6e5d0f93ca2f69e2893ce25c2 (diff) | |
| download | php-shirabe-a9dc11a1a0d8d442ab85b3eeb8791f2a8069d528.tar.gz php-shirabe-a9dc11a1a0d8d442ab85b3eeb8791f2a8069d528.tar.zst php-shirabe-a9dc11a1a0d8d442ab85b3eeb8791f2a8069d528.zip | |
test(fund-command): match PHP tester options for deterministic display
capture_stderr_separately routed the tester through ConsoleOutput,
which detects color/hyperlink support from the real process STDOUT
before the stream is swapped to the memory buffer. When STDOUT is a
real tty, decoration leaks into the captured output. The PHP original
never passes this option and get_error_output() was unused here, so
drop it to match and keep the assertion deterministic.
Diffstat (limited to 'crates/shirabe')
| -rw-r--r-- | crates/shirabe/tests/command/fund_command_test.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/crates/shirabe/tests/command/fund_command_test.rs b/crates/shirabe/tests/command/fund_command_test.rs index 22b9b060..faeda9dc 100644 --- a/crates/shirabe/tests/command/fund_command_test.rs +++ b/crates/shirabe/tests/command/fund_command_test.rs @@ -55,15 +55,7 @@ fn run_fund_case( } let mut app_tester = get_application_tester(); - let status_code = app_tester - .run( - input, - RunOptions { - capture_stderr_separately: true, - ..RunOptions::default() - }, - ) - .unwrap(); + let status_code = app_tester.run(input, RunOptions::default()).unwrap(); assert_eq!(0, status_code); assert_eq!(expected.trim(), app_tester.get_display().trim()); |
