Esempio n. 1
0
    echo "<p><a href='" . $_SERVER['PHP_SELF'] . "'>Run more tests</a></p>";
    echo debug::parse_html_console();
    ob_end_flush();
    exit(0);
}
if (isset($_GET['group'])) {
    TestManager::runGroupTest(ucfirst($_GET['group']), $_GET['group'], new HTMLReporter());
    echo "<p><a href='" . $_SERVER['PHP_SELF'] . "'>Run more tests</a></p>";
    echo debug::parse_html_console();
    ob_end_flush();
    exit(0);
}
if (isset($_GET['case'])) {
    TestManager::runTestCase($_GET['case'], new HTMLReporter());
    echo "<p><a href='" . $_SERVER['PHP_SELF'] . "?show=cases'>Run more tests</a></p>";
    echo debug::parse_html_console();
    ob_end_flush();
    exit(0);
}
echo "<h1>Unit Test Suite</h1>\n";
echo "<p><a href='" . $_SERVER['PHP_SELF'] . "'>Test groups</a>";
echo " || <a href='" . $_SERVER['PHP_SELF'] . "?show=cases'>Test cases</a></p>";
if (isset($_GET['show']) && $_GET['show'] == 'cases') {
    echo HTMLTestManager::getGroupTestList(LIMB_DIR . '/tests/cases');
    echo HTMLTestManager::getGroupTestList(PROJECT_DIR . '/tests/cases');
} else {
    /* no group specified, so list them all */
    echo HTMLTestManager::getGroupTestList(LIMB_DIR . '/tests/groups');
    echo HTMLTestManager::getGroupTestList(PROJECT_DIR . '/tests/groups');
}
ob_end_flush();
Esempio n. 2
0
 function XMLTestManager()
 {
     parent::HTMLTestManager();
 }
Esempio n. 3
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;
    }
}