Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-37555 Apply realpath() 2 CFG->phpunit_dataroot

  • Loading branch information...
commit d10ca0e6973d500c22d8a460e3a0f47cfa0721b1 1 parent 0ad7caf
@stronk7 stronk7 authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/phpunit/bootstrap.php
View
3  lib/phpunit/bootstrap.php
@@ -93,6 +93,9 @@
if (!isset($CFG->phpunit_dataroot)) {
phpunit_bootstrap_error(PHPUNIT_EXITCODE_CONFIGERROR, 'Missing $CFG->phpunit_dataroot in config.php, can not run tests!');
}
+// Ensure we access to phpunit_dataroot realpath always.
+$CFG->phpunit_dataroot = realpath($CFG->phpunit_dataroot);
+
if (isset($CFG->dataroot) and $CFG->phpunit_dataroot === $CFG->dataroot) {
phpunit_bootstrap_error(PHPUNIT_EXITCODE_CONFIGERROR, '$CFG->dataroot and $CFG->phpunit_dataroot must not be identical, can not run tests!');
}
Please sign in to comment.
Something went wrong with that request. Please try again.