* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Launches all tests. * * @package symfony * @subpackage task * @author Fabien Potencier * @version SVN: $Id: sfTestAllTask.class.php 18136 2009-05-11 11:57:32Z fabien $ */ class sfTestAllTask extends sfBaseTask { /** * @see sfTask */ protected function configure() { $this->aliases = array('test-all'); $this->namespace = 'test'; $this->name = 'all'; $this->briefDescription = 'Launches all tests'; $this->detailedDescription = <<base_dir = sfConfig::get('sf_test_dir'); // register all tests $finder = sfFinder::type('file')->follow_link()->name('*Test.php'); $h->register($finder->in($h->base_dir)); return $h->run() ? 0 : 1; } }