示例#1
0
 /**
  * Attempts to add files that match a given pattern.
  *
  * @see SimpleCollector::_handle()
  * @param object $test    Group test with {@link GroupTest::addTestFile()} method.
  * @param string $path    Directory to scan.
  * @access protected
  */
 protected function handle(&$test, $filename)
 {
     if (preg_match($this->pattern, $filename)) {
         parent::handle($test, $filename);
     }
 }