File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -80,15 +80,14 @@ public static function suite()
80
80
$ standardDir = dirname (__FILE__ ).'/ ' .$ standard .'/Tests/ ' ;
81
81
}
82
82
83
- $ standardDir = realpath ($ standardDir );
84
83
if (is_dir ($ standardDir ) === false ) {
85
84
// No tests for this standard.
86
85
continue ;
87
86
}
88
87
89
88
// Locate the actual directory that contains the standard's tests.
90
89
// This is individual to each standard as they could be symlinked in.
91
- $ baseDir = realpath ( $ standardDir. ' /../../ ' );
90
+ $ baseDir = dirname ( dirname ( $ standardDir) );
92
91
93
92
$ di = new RecursiveIteratorIterator (new RecursiveDirectoryIterator ($ standardDir ));
94
93
@@ -98,14 +97,14 @@ public static function suite()
98
97
continue ;
99
98
}
100
99
101
- // Tests must have the extention 'php'.
100
+ // Tests must have the extension 'php'.
102
101
$ parts = explode ('. ' , $ file );
103
102
$ ext = array_pop ($ parts );
104
103
if ($ ext !== 'php ' ) {
105
104
continue ;
106
105
}
107
106
108
- $ filePath = realpath ( $ file ->getPathname () );
107
+ $ filePath = $ file ->getPathname ();
109
108
$ className = str_replace ($ baseDir .DIRECTORY_SEPARATOR , '' , $ filePath );
110
109
$ className = substr ($ className , 0 , -4 );
111
110
$ className = str_replace (DIRECTORY_SEPARATOR , '_ ' , $ className );
You can’t perform that action at this time.
0 commit comments