| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 35 | public function handleDeprecations(ProcessEvent $event) |
|
| 35 | { |
||
| 36 | 35 | $process = $event->getProcess(); |
|
| 37 | |||
| 38 | 35 | if ($process->getExitCode() === 0) { |
|
| 39 | 24 | return; |
|
| 40 | } |
||
| 41 | |||
| 42 | 13 | if (strpos($process->getOutput(), 'deprecation') !== false) { |
|
| 43 | 3 | $testResult = $this->createTestResult($process); |
|
| 44 | 3 | $this->testResultContainer->handleTestResult($process, $testResult); |
|
| 45 | } |
||
| 46 | } |
||
| 47 | |||
| 56 |