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