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