Class SimplePatternCollector

Description

An extension to SimpleCollector that only adds files matching a given pattern.

Located in /collector.php (line 95)

SimpleCollector
   |
   --SimplePatternCollector
Method Summary
 SimplePatternCollector __construct ([string $pattern = '/php$/i'])
 void handle ( &$test,  $filename, object $test, string $path)
Methods
Constructor __construct (line 104)
SimplePatternCollector __construct ([string $pattern = '/php$/i'])
  • string $pattern: Perl compatible regex to test name against See PHP's PCRE for full documentation of valid pattern.s
handle (line 116)

Attempts to add files that match a given pattern.

  • see: SimpleCollector::_handle()
  • access: protected
void handle ( &$test,  $filename, object $test, string $path)
  • object $test: Group test with GroupTest::addTestFile() method.
  • string $path: Directory to scan.
  • &$test
  • $filename

Redefinition of:
SimpleCollector::handle()
This method determines what should be done with a given file and adds it via GroupTest::addTestFile() if necessary.

Inherited Methods

Inherited From SimpleCollector

 SimpleCollector::collect()
 SimpleCollector::handle()
 SimpleCollector::isHidden()
 SimpleCollector::removeTrailingSlash()

Documentation generated on Sun, 31 Oct 2010 16:31:01 -0500 by phpDocumentor 1.4.3