Exemplo n.º 1
0
 static function getFileFilter()
 {
     if (!is_object(self::$file_filter)) {
         self::setFileFilter(lmbTestOptions::get('file_filter'));
     }
     return self::$file_filter;
 }
Exemplo n.º 2
0
 function paintMethodStart($test_name)
 {
     parent::paintMethodStart($test_name);
     if (lmbTestOptions::get('verbose')) {
         print "===== [{$test_name}] =====\n";
     }
 }
Exemplo n.º 3
0
 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);
     }
 }
Exemplo n.º 4
0
 function getTestLabel()
 {
     return 'All tests in "' . implode(';', $this->paths) . '"(filter "' . lmbTestOptions::get('file_filter') . '")';
 }