protected function execute($arguments = array(), $options = array())
 {
     //    $initTask = new sfPhpunitInitTask($this->dispatcher, $this->formatter);
     //    $initTask->run();
     chdir(sfConfig::get('sf_root_dir'));
     shell_exec('./symfony phpunit:init');
     $path = $arguments['test'];
     sfBasePhpunitTestSuite::setProjectConfiguration($this->configuration);
     $runner = new PHPUnit_TextUI_TestRunner();
     $runner->doRun(sfPhpunitSuiteLoader::factory($path)->getSuite());
 }
 protected function _initFixturesDirs(PHPUnit_Framework_TestSuite $suite = null)
 {
     if (null === $suite) {
         $suite = sfPhpunitSuiteLoader::factory()->getSuite();
     }
     foreach ($suite->tests() as $test) {
         //don't create fixtures directories for default created suite.
         if ('sfBasePhpunitTestSuite' === get_class($test)) {
             $this->_initFixturesDirs($test);
             continue;
         }
         if ($test instanceof sfPhpunitFixtureAggregator) {
             $this->_createDir($test->getCommonFixtureDir());
             $this->_createDir($test->getPackageFixtureDir());
             $this->_createDir($test->getOwnFixtureDir());
         }
         if ($test instanceof PHPUnit_Framework_TestSuite) {
             $this->_initFixturesDirs($test);
         }
     }
 }