Beispiel #1
0
 /**
  * Retrieves and paints the list of group tests in an HTML format.
  *
  * @return void
  */
 function groupTestList()
 {
     $groupTests = parent::groupTestList();
     $app = $this->params['app'];
     $plugin = $this->params['plugin'];
     $buffer = "<h3>Core Test Groups:</h3>\n<ul>";
     $urlExtra = null;
     if ($app) {
         $buffer = "<h3>App Test Groups:</h3>\n<ul>";
         $urlExtra = '&app=true';
     } else {
         if ($plugin) {
             $buffer = "<h3>" . Inflector::humanize($plugin) . " Test Groups:</h3>\n<ul>";
             $urlExtra = '&plugin=' . $plugin;
         }
     }
     $buffer .= "<li><a href='" . $this->baseURL() . "?group=all{$urlExtra}'>All tests</a></li>\n";
     foreach ($groupTests as $groupTest) {
         $buffer .= "<li><a href='" . $this->baseURL() . "?group={$groupTest}" . "{$urlExtra}'>" . $groupTest . "</a></li>\n";
     }
     $buffer .= "</ul>\n";
     echo $buffer;
 }