diff --git a/tests/Bin/RectorTest.php b/tests/Bin/RectorTest.php index fcb3d619a3a..44658f11723 100644 --- a/tests/Bin/RectorTest.php +++ b/tests/Bin/RectorTest.php @@ -35,6 +35,10 @@ public function testConsoleOutput(string $command, string $expectedOutput): void { $process = Process::fromShellCommandline($command); $process->run(); - $this->assertSame($expectedOutput, preg_replace('/ +/', ' ', $process->getOutput())); + $this->assertSame($expectedOutput, preg_replace('/ +/', ' ', $process->getOutput()), sprintf( + 'exit code %s, stderr: %s', + $process->getExitCode() ?? 'not started', + $process->getErrorOutput() + )); } }