[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/tests/test_tools/simpletest/ -> collector.php (sommaire)

This file contains the following classes: {@link SimpleCollector}, {@link SimplePatternCollector}.

Author: Travis Swicegood <development@domain51.com>
Version: $Id: collector.php 1397 2006-09-07 07:55:53Z wei $
Poids: 115 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

SimpleCollector:: (3 méthodes):
  _removeTrailingSlash()
  collect()
  _handle()

SimplePatternCollector:: (2 méthodes):
  SimplePatternCollector()
  _handle()


Classe: SimpleCollector  - X-Ref

The basic collector for {@link GroupTest}

_removeTrailingSlash($path)   X-Ref
Strips off any kind of slash at the end so as to normalise the path

param: string $path    Path to normalise.

collect($test, $path)   X-Ref
Scans the directory and adds what it can.

param: object $test    Group test with {@link GroupTest::addTestFile()} method.
param: string $path    Directory to scan.

_handle($test, $file)   X-Ref
This method determines what should be done with a given file and adds
it via {@link GroupTest::addTestFile()} if necessary.

This method should be overriden to provide custom matching criteria,
such as pattern matching, recursive matching, etc.  For an example, see
{@link SimplePatternCollector::_handle()}.

param: object $test      Group test with {@link GroupTest::addTestFile()} method.
param: string $filename  A filename as generated by {@link collect()}

Classe: SimplePatternCollector  - X-Ref

An extension to {@link SimpleCollector} that only adds files matching a
given pattern.

SimplePatternCollector($pattern = '/php$/i')   X-Ref

param: string $pattern   Perl compatible regex to test name against

_handle($test, $filename)   X-Ref
Attempts to add files that match a given pattern.

param: object $test    Group test with {@link GroupTest::addTestFile()} method.
param: string $path    Directory to scan.



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7