print $Usage; exit(0); } if (array_key_exists('f', $options)) { $filePath = $options['f']; if (!strlen($filePath)) { print $Usage; exit(1); } if (!file_exists($filePath)) { print "Error! {$filePath} does not exist or is not readable\n"; exit(1); } } $tr = new TestReport($filePath); $results = $tr->parseResultsFile($filePath); //print "got back the following from parseResultsFile:\n"; //print_r($results) . "\n"; $totalPasses = 0; $totalFailures = 0; $totalExceptions = 0; /** * groupByType * * group a failure type by suite. Used to gather up all failures or exceptions * for a given test suite. * * @param string $suiteName the name of the test suite * @param array $list an array of keys => array (the list) * @return array $failType *