Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function testSymfonyRunningProcessFailedException(): void |
||
13 | { |
||
14 | $process = new Process('non_existing_binaries'); |
||
|
|||
15 | |||
16 | try { |
||
17 | $process->mustRun(); |
||
18 | } catch (ExceptionInterface $exception) { |
||
19 | $processFailure = new ProcessFailedException($process, $exception); |
||
20 | $this->assertSame( |
||
21 | 'Process with command "non_existing_binaries" has failed running with exit code 127(Command not found)', |
||
22 | $processFailure->getMessage() |
||
23 | ); |
||
46 |