public static function pts_format_tests_to_array($object) { // Print out a text tree that shows the suites and tests within an object $contained = array(); if (pts_test_suite::is_suite($object)) { $xml_parser = new pts_suite_nye_XmlReader($object); $test_names = array_unique($xml_parser->getXMLArrayValues('PhoronixTestSuite/Execute/Test')); $contained[$object] = array(); foreach ($test_names as $test) { array_push($contained[$object], self::pts_format_tests_to_array($test)); } } else { $contained = $object; } return $contained; }