Ejemplo n.º 1
0
            echo $footer;
            break;
    }
}
/** OUTPUT STARTS HERE **/
// If it's a group test
if (isset($_GET['group'])) {
    if ('all' == $_GET['group']) {
        TestManager::runAllTests(DW_TESTS_GetReporter());
    } else {
        TestManager::runGroupTest(ucfirst($_GET['group']), TEST_GROUPS, DW_TESTS_GetReporter());
    }
    DW_TESTS_PaintRunMore();
    exit;
}
// If it's a single test case
if (isset($_GET['case'])) {
    TestManager::runTestCase($_GET['case'], TEST_CASES, DW_TESTS_GetReporter());
    DW_TESTS_PaintRunMore();
    exit;
}
// Else it's the main page
DW_TESTS_PaintHeader();
DW_TESTS_PaintSuiteHeader();
if (isset($_GET['show']) && $_GET['show'] == 'cases') {
    DW_TESTS_PaintCaseList();
} else {
    /* no group specified, so list them all */
    DW_TESTS_PaintGroupTestList();
}
DW_TESTS_PaintFooter();
Ejemplo n.º 2
0
        TestManager::runAllPluginTests(DW_TESTS_GetReporter());
    } else {
        TestManager::runGroupTest(ucfirst($_GET['plugin_group']), TEST_PLUGINS, DW_TESTS_GetReporter());
    }
    DW_TESTS_PaintRunMore();
    exit;
}
// If it's a single test case
if (isset($_GET['case'])) {
    TestManager::runTestCase($_GET['case'], TEST_CASES, DW_TESTS_GetReporter());
    DW_TESTS_PaintRunMore();
    exit;
}
// If it's a single plugin test case
if (isset($_GET['plugin_case'])) {
    TestManager::runTestCase($_GET['plugin_case'], TEST_PLUGINS, DW_TESTS_GetReporter());
    DW_TESTS_PaintRunMore();
    exit;
}
// Else it's the main page
DW_TESTS_PaintHeader();
DW_TESTS_PaintSuiteHeader();
if (isset($_GET['show']) && $_GET['show'] == 'cases') {
    DW_TESTS_PaintCaseList();
    DW_TESTS_PaintPluginTestCaseList();
} else {
    /* no group specified, so list them all */
    DW_TESTS_PaintGroupTestList();
    DW_TESTS_PaintPluginGroupTestList();
}
DW_TESTS_PaintFooter();