Changeset 2271

Show
Ignore:
Timestamp:
03/10/2008 10:01:25 AM (9 months ago)
Author:
Geert
Message:

Attempting to fix bug relating to Windows paths.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/unit_test/libraries/Unit_Test.php

    r2270 r2271  
    2626                foreach ((array) $paths as $path) 
    2727                { 
    28                         $this->paths[] = str_replace('\\', '/', realpath($path)).'/'; 
     28                        $this->paths[] = str_replace('\\', '/', realpath($path)); 
    2929                } 
    3030 
     
    3838                        ) 
    3939                        { 
     40                                // Normalize path 
     41                                $path = str_replace('\\', '/', realpath($path)); 
     42 
    4043                                // Skip files without "_Test" suffix 
    4144                                if ( ! $file->isFile() OR substr($path, -9) !== '_Test'.EXT)