Changeset 19578
- Timestamp:
- 06/26/09 09:03:53 (8 months ago)
- Files:
-
- components/event_dispatcher/trunk/test/prove.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
components/event_dispatcher/trunk/test/prove.php
r19553 r19578 15 15 protected function get_relative_file($file) 16 16 { 17 $file =str_replace(DIRECTORY_SEPARATOR, '/', str_replace(array(17 return str_replace(DIRECTORY_SEPARATOR, '/', str_replace(array( 18 18 realpath($this->base_dir).DIRECTORY_SEPARATOR, 19 realpath($this->base_dir.'/../lib/plugins').DIRECTORY_SEPARATOR,20 19 $this->extension, 21 20 ), '', $file)); 22 23 return preg_replace('#^(.*?)Plugin/test/(unit|functional)/#', '[$1] $2/', $file);24 21 } 25 22 } 26 23 27 24 $h = new lime_symfony(new lime_output(isset($argv) && in_array('--color', $argv))); 28 $h->base_dir = realpath(dirname(__FILE__) .'/..');25 $h->base_dir = realpath(dirname(__FILE__)); 29 26 30 foreach (new DirectoryIterator(dirname(__FILE__)) as $file)27 foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator(dirname(__FILE__)), RecursiveIteratorIterator::LEAVES_ONLY) as $file) 31 28 { 32 if ( false !== strpos($file, 'Test.php'))29 if (preg_match('/Test\.php$/', $file)) 33 30 { 34 31 $h->register($file->getRealPath());

