From ed6146c0d8c96a707ca65c6c413373b860fe01f6 Mon Sep 17 00:00:00 2001 From: Marek Miklewicz Date: Tue, 30 Jun 2026 11:32:19 +0200 Subject: [PATCH] test: cover real process runner --- tests/remote_login_url_client_test.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/remote_login_url_client_test.php b/tests/remote_login_url_client_test.php index 94dcee0..a3164f0 100644 --- a/tests/remote_login_url_client_test.php +++ b/tests/remote_login_url_client_test.php @@ -48,3 +48,9 @@ test('remote login url client validates helper output before returning it', func } }); +test('process runner returns stdout and exit code from real command', function (): void { + $result = RemoteLoginUrlClient::runProcess(['php', '-r', 'echo "ok\n";'], 5); + + assert_same(0, $result->exitCode); + assert_same("ok\n", $result->stdout); +});