test: cover real process runner

This commit is contained in:
Marek Miklewicz
2026-06-30 11:32:19 +02:00
parent 77c5431db0
commit ed6146c0d8
+6
View File
@@ -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);
});