Exemple #1
0
function CakePHPTestGroupTestList()
{
    switch (CAKE_TEST_OUTPUT) {
        case CAKE_TEST_OUTPUT_HTML:
            if (isset($_GET['app'])) {
                echo HtmlTestManager::getGroupTestList(APP_TEST_GROUPS);
            } else {
                echo HtmlTestManager::getGroupTestList(CORE_TEST_GROUPS);
            }
            break;
        case CAKE_TEST_OUTPUT_TEXT:
        default:
            if (isset($_GET['app'])) {
                echo TextTestManager::getGroupTestList(APP_TEST_GROUPS);
            } else {
                echo TextTestManager::getGroupTestList(CORE_TEST_GROUPS);
            }
            break;
    }
}
Exemple #2
0
 /**
  * Prints a list of group tests
  *
  * @return void
  * @access public
  */
 function CakePHPTestGroupTestList()
 {
     switch (CAKE_TEST_OUTPUT) {
         case CAKE_TEST_OUTPUT_HTML:
             echo HtmlTestManager::getGroupTestList();
             break;
         case CAKE_TEST_OUTPUT_TEXT:
         default:
             echo TextTestManager::getGroupTestList();
             break;
     }
 }