static function getFileFilter() { if (!is_object(self::$file_filter)) { self::setFileFilter(lmbTestOptions::get('file_filter')); } return self::$file_filter; }
function paintMethodStart($test_name) { parent::paintMethodStart($test_name); if (lmbTestOptions::get('verbose')) { print "===== [{$test_name}] =====\n"; } }
protected function _prepareTestCase($test) { require_once $this->file; $candidates = $this->_getClassesDefinedInFile(); $loader = new SimpleFileLoader(); foreach ($loader->selectRunnableTests($candidates) as $class) { if ($this->_isFiltered($class)) { continue; } $case = new $class(); $case->filter(lmbTestOptions::get('methods_filter')); $test->addTestCase($case); //a dirty SimpleTest PHP4 compatibility hack //otherwise $case is overwrittne since it is a reference unset($case); } }
function getTestLabel() { return 'All tests in "' . implode(';', $this->paths) . '"(filter "' . lmbTestOptions::get('file_filter') . '")'; }