mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-55379 phpunit: Remove directory seperator if present
This commit is contained in:
parent
791844d25a
commit
095883d1ea
@ -65,7 +65,8 @@ function testing_cli_argument_path($moodlepath) {
|
||||
$path = testing_cli_fix_directory_separator($path);
|
||||
|
||||
if (strpos($path, $cwd) === 0) {
|
||||
$path = substr($path, strlen($cwd));
|
||||
// Remove current working directory and directory separator.
|
||||
$path = substr($path, strlen($cwd)+1);
|
||||
}
|
||||
|
||||
return $path;
|
||||
|
Loading…
x
Reference in New Issue
Block a user