handleBootstrap() protected method

Loads a bootstrap file.
protected handleBootstrap ( string $filename )
$filename string
Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function handleBootstrap($filename)
 {
     parent::handleBootstrap($filename);
     // By default, we want PHPUnit's autoloader before Symfony's one
     if (!getenv('SYMFONY_PHPUNIT_OVERLOAD')) {
         $filename = realpath(stream_resolve_include_path($filename));
         $symfonyLoader = realpath(dirname(PHPUNIT_COMPOSER_INSTALL) . '/../../../vendor/autoload.php');
         if ($filename === $symfonyLoader) {
             $symfonyLoader = (require $symfonyLoader);
             $symfonyLoader->unregister();
             $symfonyLoader->register(false);
         }
     }
 }