diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-24 00:49:13 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-24 00:50:12 +0900 |
| commit | bb6254e2007c809d76fde09f06d276f50bba84ed (patch) | |
| tree | 16e794bed7785b4214d7aa81b199de363ce27d70 /crates/shirabe/tests/io/main.rs | |
| parent | 0ccb1a7740e63e4118c156f81aacf6381ae38464 (diff) | |
| download | php-shirabe-bb6254e2007c809d76fde09f06d276f50bba84ed.tar.gz php-shirabe-bb6254e2007c809d76fde09f06d276f50bba84ed.tar.zst php-shirabe-bb6254e2007c809d76fde09f06d276f50bba84ed.zip | |
test(io): add IOMock test helper porting Composer's IOMock
Port composer/tests/Composer/Test/Mock/IOMock.php as a BufferIO-backed
mock with expects()/assert_complete(), authentication logging, and a Drop
guard mirroring TestCase::getIOMock + tearDown. This is the infrastructure
many IO-consuming tests need; wiring existing #[ignore] tests onto it is a
follow-up, gated on making BufferIO::get_output's look-behind regex
regex-crate compatible.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/io/main.rs')
| -rw-r--r-- | crates/shirabe/tests/io/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/shirabe/tests/io/main.rs b/crates/shirabe/tests/io/main.rs index a3148fd..25174e9 100644 --- a/crates/shirabe/tests/io/main.rs +++ b/crates/shirabe/tests/io/main.rs @@ -1,3 +1,6 @@ +#[path = "../common/io_mock.rs"] +mod io_mock; + mod buffer_io_test; mod console_io_test; mod null_io_test; |
