Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function testSymfonyBootingProcessFailedException(): void |
||
28 | { |
||
29 | $process = new Process('echo test', __DIR__ . '/notfound/'); |
||
30 | |||
31 | try { |
||
32 | $process->mustRun(); |
||
33 | } catch (ExceptionInterface $exception) { |
||
34 | $processFailure = new ProcessFailedException($process, $exception); |
||
35 | $this->assertSame( |
||
36 | 'Process with command "echo test" has failed with exit code 0()', |
||
37 | $processFailure->getMessage() |
||
38 | ); |
||
39 | |||
40 | return; |
||
41 | } |
||
42 | |||
43 | $this->markTestSkipped('Test is only relevant for symfony/process: ^4.0'); |
||
44 | } |
||
46 |