test: cover real process runner
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user