Exemple #1
0
function DW_TESTS_PaintGroupTestList()
{
    switch (DW_TESTS_OUTPUT) {
        case DW_TESTS_OUTPUT_XML:
            echo XMLTestManager::getGroupTestList(TEST_GROUPS);
            break;
        case DW_TESTS_OUTPUT_HTML:
        default:
            echo HTMLTestManager::getGroupTestList(TEST_GROUPS);
            break;
    }
}
Exemple #2
0
 function &getTestCaseList($directory = '.')
 {
     $manager = new XMLTestManager();
     $testcases =& $manager->_getTestCaseList($directory);
     $rss =& $manager->_getRssWriter();
     if (1 > count($testcases)) {
         $rss->writeRss($output);
         return $output;
     }
     foreach ($testcases as $testfile => $testcase) {
         $properties["title"] = $testcase;
         $properties["description"] = $testcase;
         $properties["link"] = 'http://' . $_SERVER['SERVER_NAME'] . $manager->getBaseURL() . "?case=" . urlencode($testcase) . "&output=xml";
         // Comment this out for performance?
         $properties["dc:date"] = gmdate("Y-m-d\\TH:i:sO", filemtime($testfile));
         $rss->additem($properties);
     }
     $rss->writeRss($output);
     return $output;
 }