| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 34 | 13 | private function getResultsFromOutput($output) |
|
| 35 | { |
||
| 36 | 13 | $matches = array(); |
|
| 37 | 13 | preg_match(self::PHPUNIT_TEST_RESULTS_REGEX, $output, $matches); |
|
| 38 | |||
| 39 | 13 | $results = ''; |
|
| 40 | |||
| 41 | 13 | if (!empty($matches)) { |
|
| 42 | // fix per PHPUNIT < 4.7, strip della riga della config |
||
| 43 | 11 | if (substr($matches[0], 0, 24) == $this::PHPUNIT_CONFIG_LOAD) { |
|
| 44 | 4 | $results = preg_replace('/^'.preg_quote($this::PHPUNIT_CONFIG_LOAD).'.*\n\n/', '', $matches[0]); |
|
| 45 | 4 | } else { |
|
| 46 | 7 | $results = $matches[0]; |
|
| 47 | } |
||
| 48 | 11 | } |
|
| 49 | |||
| 50 | 13 | return $results; |
|
| 51 | } |
||
| 52 | } |
||
| 53 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.