diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-20 03:48:34 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-20 03:48:34 +0900 |
| commit | 31b4bffe129eac30d2322eb114254d9ef6d5c743 (patch) | |
| tree | 9daf753defab2de12dbd95b3da1fdf24d5f6ee82 /crates/shirabe/tests/event_dispatcher/main.rs | |
| parent | 112e0125defacba3fcd59cd5f8949b77746264bc (diff) | |
| download | php-shirabe-31b4bffe129eac30d2322eb114254d9ef6d5c743.tar.gz php-shirabe-31b4bffe129eac30d2322eb114254d9ef6d5c743.tar.zst php-shirabe-31b4bffe129eac30d2322eb114254d9ef6d5c743.zip | |
fix(event-dispatcher): un-ignore test_dispatcher_outputs_command
The ignore reason went stale: the getListeners override seam and a real
ProcessExecutor wired to the IO already cover the PHP setup, and IOStub
is the PHPUnit IOInterface-mock equivalent. IOStub now records
writeError calls (writeRaw was already recorded) so the
expects(once)->with(...) spies on writeError/writeRaw can be reproduced
as call-list equality assertions.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/event_dispatcher/main.rs')
| -rw-r--r-- | crates/shirabe/tests/event_dispatcher/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/shirabe/tests/event_dispatcher/main.rs b/crates/shirabe/tests/event_dispatcher/main.rs index 0ff669ab..eac717d7 100644 --- a/crates/shirabe/tests/event_dispatcher/main.rs +++ b/crates/shirabe/tests/event_dispatcher/main.rs @@ -1,3 +1,5 @@ +#[path = "../common/io_stub.rs"] +mod io_stub; #[path = "../common/process_executor_mock.rs"] mod process_executor_mock; |
