1. sfTestBaseTask.class.php
  2. /** * Base test task. * * @package symfony * @subpackage task * @author Fabien Potencier * @version SVN: $Id: sfTestBaseTask.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */
  3. abstract class sfTestBaseTask extends sfBaseTask
  4. {
  5. /**
  6. * Filters tests through the "task.test.filter_test_files" event.
  7. *
  8. * @param array $tests An array of absolute test file paths
  9. * @param array $arguments Current task arguments
  10. * @param array $options Current task options
  11. *
  12. * @return array The filtered array of test files
  13. */
  14. protected function filterTestFiles($tests, $arguments, $options)
  15. {
  16. $event = new sfEvent($this, 'task.test.filter_test_files', array('arguments' => $arguments, 'options' => $options));
  17. $this->dispatcher->filter($event, $tests);
  18. return $event->getReturnValue();
  19. }
  20. }

Debug toolbar