| 1 | <?php |
||
| 9 | class JSONLogStub |
||
| 10 | { |
||
| 11 | const TWO_ERRORS_TWO_FAILURES = '2Errors2Failures'; |
||
| 12 | const ALL_GREEN = 'AllGreen'; |
||
| 13 | const FATAL_ERROR = 'FatalError'; |
||
| 14 | const SEGFAULT = 'SegFault'; |
||
| 15 | const ONE_ERROR = 'SingleError'; |
||
| 16 | const ONE_INCOMPLETE = 'SingleIncomplete'; |
||
| 17 | const ONE_RISKY = 'SingleRisky'; |
||
| 18 | const ONE_SKIP = 'SingleSkip'; |
||
| 19 | const ONE_WARNING = 'SingleWarning'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param $filename |
||
| 23 | * @return string |
||
| 24 | * @throws \Exception |
||
| 25 | */ |
||
| 26 | public static function getLogs($filename) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param $filename |
||
| 33 | * @return string |
||
| 34 | * @throws \Exception |
||
| 35 | */ |
||
| 36 | public static function getCleanOutputFileContent($filename) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param string $jsonString The dirty output |
||
| 48 | * @return string The normalized log, as an array of JSON objects |
||
| 49 | */ |
||
| 50 | private static function cleanLog($jsonString) |
||
| 56 | } |
||
| 57 |