TestSuite::addFile PHP Méthode

addFile() public méthode

The new suite is composed into this one.
public addFile ( string $test_file )
$test_file string File name of library with test case classes.
    public function addFile($test_file)
    {
        $extractor = new SimpleFileLoader();
        $this->add($extractor->load($test_file));
    }

Usage Example

Exemple #1
0
 function __construct()
 {
     parent::TestSuite("All Generic Tephlon Tests");
     $tFiles = glob("*Test.php");
     foreach ($tFiles as $f) {
         echo "adding {$f}";
         parent::addFile($f);
         parent::run(new TextReporter());
     }
 }
All Usage Examples Of TestSuite::addFile