unittests MDL-24322 made unit tests trim the path entered by the user to stop trailing spaces causing an error

This commit is contained in:
Andrew Davis 2010-09-22 05:46:26 +00:00
parent b7ff4643ae
commit 7cfa8aeef2

View file

@ -37,6 +37,9 @@ $UNITTEST = new stdClass();
$strtitle = get_string('unittests', 'simpletest');
if (!is_null($path)) {
//trim so user doesn't get an error if they include a space on the end of the path (ie by pasting path)
$path = trim($path);
// Turn off xmlstrictheaders during the unit test run.
$origxmlstrictheaders = !empty($CFG->xmlstrictheaders);
$CFG->xmlstrictheaders = false;