5 * Parse phpunit result files
10 * @param string $csvContent
11 * Content; each row in the row csv should start with two cells:.
12 * - cell 0: the test name
13 * - cell 1: the test status
15 * (string $testName => string $status)
17 public static function parseResults($csvContent) {
18 $fh = fopen('php://memory', 'r+');
19 fwrite($fh, $csvContent);
23 while (($r = fgetcsv($fh)) !== FALSE) {
24 $name = str_replace('.', '::', trim($r[0]));
25 $status = trim($r[1]);
26 $results[$name] = $status;