Class SimplePatternCollector

Description

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

Located in /collector.php (line 95)

SimpleCollector
   |
   --SimplePatternCollector
Variable Summary
 mixed $_pattern
Method Summary
 SimplePatternCollector SimplePatternCollector ([string $pattern = '/php$/i'])
 void _handle ( &$test,  $filename, object $test, string $path)
Variables
mixed $_pattern (line 96)
Methods
Constructor SimplePatternCollector (line 104)
SimplePatternCollector SimplePatternCollector ([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.

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::_removeTrailingSlash()

Documentation generated on Sun, 04 May 2008 09:21:21 -0500 by phpDocumentor 1.3.0