*/
class AutoGroupTest extends GroupTest {
- var $thorough;
var $showsearch;
- function AutoGroupTest($showsearch, $thorough, $test_name = null) {
+ function AutoGroupTest($showsearch, $test_name = null) {
$this->GroupTest($test_name);
$this->showsearch = $showsearch;
- $this->thorough = $thorough;
}
function run(&$reporter) {
if ($file != 'CVS' && !in_array($file_path, $this->ignorefolders)) {
$this->_recurseFolders($file_path);
}
- } elseif (preg_match('/simpletest(\/|\\\\)test.*\.php$/', $file_path) ||
- ($this->thorough && preg_match('/simpletest(\/|\\\\)slowtest.*\.php$/', $file_path))) {
+ } elseif (preg_match('/simpletest(\/|\\\\)test.*\.php$/', $file_path)) {
$s_count++;
// OK, found: this shows as a 'Notice' for any 'simpletest/test*.php' file.
class AutoGroupTestNotice extends Notice { }
class FindFileNotice extends Notice { }
-?>
\ No newline at end of file
+?>
$showpasses = optional_param('showpasses', false, PARAM_BOOL);
$showsearch = optional_param('showsearch', false, PARAM_BOOL);
$rundbtests = optional_param('rundbtests', false, PARAM_BOOL);
-$thorough = optional_param('thorough', false, PARAM_BOOL);
$addconfigprefix = optional_param('addconfigprefix', false, PARAM_RAW);
$setuptesttables = optional_param('setuptesttables', false, PARAM_BOOL);
$upgradetesttables = optional_param('upgradetesttables', false, PARAM_BOOL);
$CFG->xmlstrictheaders = false;
}
admin_externalpage_setup('reportsimpletest', '', array('showpasses' => $showpasses,
- 'showsearch' => $showsearch, 'thorough' => $thorough));
+ 'showsearch' => $showsearch));
admin_externalpage_print_header();
$langfile = 'simpletest';
if (!is_null($path)) {
// Create the group of tests.
- $test = new AutoGroupTest($showsearch, $thorough);
+ $test = new AutoGroupTest($showsearch);
// OU specific. We use the _nonproject folder for stuff we want to
// keep in CVS, but which is not really relevant. It does no harm
echo '<fieldset class="invisiblefieldset">';
echo '<p>'; print_checkbox('showpasses', 1, $showpasses, get_string('showpasses', $langfile)); echo '</p>';
echo '<p>'; print_checkbox('showsearch', 1, $showsearch, get_string('showsearch', $langfile)); echo '</p>';
-echo '<p>'; print_checkbox('thorough', 1, $thorough, get_string('thorough', $langfile)); echo '</p>';
echo '<p>';
echo '<label for="path">', get_string('onlytest', $langfile), '</label> ';
echo '<input type="text" id="path" name="path" value="', $displaypath, '" size="40" />';