/** * Paints the end of a group test. Will paint the page * footer if the stack of tests has unwound. * @param string $test_name Name of test that is ending. * @param integer $progress Number of test cases ending. */ function paintGroupEnd($test_name) { if (extension_loaded('xdebug')) { $this->code_coverage = xdebug_get_code_coverage(); xdebug_stop_code_coverage(); ksort($this->code_coverage); } HtmlReporter::paintGroupEnd($test_name); }
function paintGroupEnd($name) { $matches = array(); if (preg_match("#ext/(.*)/test.php#", $name, $matches)) { $name = $matches[1]; $link = "<a href=\"" . make_link("test/{$name}") . "\">Test only this extension</a>"; } parent::paintGroupEnd($name); if ($this->current_html == "") { $this->clear_modules[] = $name; } else { $this->current_html .= "<p>{$link}"; $this->page->add_block(new Block($name, $this->current_html, "main", 50)); $this->current_html = ""; } }
function paintGroupEnd($test_name, $size) { parent::paintGroupEnd($test_name, $size); }