setBootstrap() public method

Set a bootstrap file included before tests run (e.g. setup autoloading)
public setBootstrap ( string $file )
$file string
Beispiel #1
0
 /**
  * Set the path to a bootstrap file used when testing. This allows
  * for registering autoloaders and such, for example TestHelper.php or
  * Bootstrap.php are common for PHPUnit.
  *
  * @param \Mutagenesis\Runner\RunnerAbstract $runner
  */
 protected static function setBootstrap(\Mutagenesis\Runner\RunnerAbstract $runner)
 {
     if (isset(self::$_options['bootstrap'])) {
         $runner->setBootstrap(self::$_options['bootstrap']);
     }
 }