diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-21 05:09:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-21 05:09:56 +0900 |
| commit | 25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0 (patch) | |
| tree | 0974de4f5e7a19415f2bcda9adc34cb95263b2e9 /crates/shirabe/tests/io | |
| parent | b07f3a9f51d7ce5ea8ee4dc45da7fe9a55b7f1d4 (diff) | |
| download | php-shirabe-25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0.tar.gz php-shirabe-25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0.tar.zst php-shirabe-25f96cab45f5da4fba2ef0486a0b0bc8f7ca87b0.zip | |
test: port downloader/installer/io/json/event-dispatcher/functional stubs
All ignored: these mock IO/HttpDownloader (curl)/ProcessExecutor/installers,
use ZipArchive/JsonManipulator todo!()s, need Symfony console or schema
validation, reflect into ClassLoader, or run end-to-end install/functional
fixtures. Wires up the event_dispatcher test target.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/io')
| -rw-r--r-- | crates/shirabe/tests/io/console_io_test.rs | 26 | ||||
| -rw-r--r-- | crates/shirabe/tests/io/main.rs | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/crates/shirabe/tests/io/console_io_test.rs b/crates/shirabe/tests/io/console_io_test.rs index be2ce85..6715978 100644 --- a/crates/shirabe/tests/io/console_io_test.rs +++ b/crates/shirabe/tests/io/console_io_test.rs @@ -1 +1,27 @@ //! ref: composer/tests/Composer/Test/IO/ConsoleIOTest.php + +// These mock Symfony's InputInterface/OutputInterface/HelperSet (and QuestionHelper) to +// drive ConsoleIO; those console abstractions are not ported. +macro_rules! stub { + ($name:ident) => { + #[test] + #[ignore = "mocks Symfony Input/Output/HelperSet to drive ConsoleIO; not ported"] + fn $name() { + todo!() + } + }; +} + +stub!(test_is_interactive); +stub!(test_write); +stub!(test_write_error); +stub!(test_write_with_multiple_line_string_when_debugging); +stub!(test_overwrite); +stub!(test_ask); +stub!(test_ask_confirmation); +stub!(test_ask_and_validate); +stub!(test_select); +stub!(test_set_and_get_authentication); +stub!(test_get_authentication_when_did_not_set); +stub!(test_has_authentication); +stub!(test_sanitize); diff --git a/crates/shirabe/tests/io/main.rs b/crates/shirabe/tests/io/main.rs index 68d66a3..a3148fd 100644 --- a/crates/shirabe/tests/io/main.rs +++ b/crates/shirabe/tests/io/main.rs @@ -1,2 +1,3 @@ mod buffer_io_test; +mod console_io_test; mod null_io_test; |
