Changeset 19812
- Timestamp:
- 07/01/09 23:56:38 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.3/lib/task/symfony/sfSymfonyTestTask.class.php
r19805 r19812 28 28 new sfCommandOption('only-failed', 'f', sfCommandOption::PARAMETER_NONE, 'Only run tests that failed last time'), 29 29 new sfCommandOption('xml', null, sfCommandOption::PARAMETER_REQUIRED, 'The file name for the JUnit compatible XML log file'), 30 new sfCommandOption('rebuild-all', null, sfCommandOption::PARAMETER_NONE, 'Rebuild all generated fixture files'), 30 31 )); 31 32 … … 79 80 $h->base_dir = realpath(dirname(__FILE__).'/../../../test'); 80 81 82 // remove generated files 83 if ($options['rebuild-all']) 84 { 85 $finder = sfFinder::type('dir')->name(array('base', 'om', 'map')); 86 foreach ($finder->in(glob($h->base_dir.'/../lib/plugins/*/test/functional/fixtures/lib')) as $dir) 87 { 88 sfToolkit::clearDirectory($dir); 89 } 90 } 91 81 92 if ($status) 82 93 {

