Merge branch 'MDL-38327_master' of git://github.com/dmonllao/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2013-03-05 19:26:52 +01:00
+1 -1
View File
@@ -111,7 +111,7 @@ if (!empty($CFG->behat_dataroot) && !empty($CFG->behat_prefix) && file_exists($C
$CFG->behat_dataroot = realpath($CFG->behat_dataroot);
$switchcompletely = isset($CFG->behat_switchcompletely) && php_sapi_name() !== 'cli';
$switchcompletely = !empty($CFG->behat_switchcompletely) && php_sapi_name() !== 'cli';
$builtinserver = php_sapi_name() === 'cli-server';
$behatrunning = defined('BEHAT_RUNNING');
$testenvironmentrequested = $switchcompletely || $builtinserver || $behatrunning;