From 7fb84d75eeb607088df3b2977d3a237a77c6897b Mon Sep 17 00:00:00 2001 From: Rajesh Taneja Date: Wed, 29 Apr 2015 10:43:49 +0800 Subject: [PATCH] MDL-50042 behat: Use double quotes to avoid symfony adding it --- admin/tool/behat/cli/run.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/tool/behat/cli/run.php b/admin/tool/behat/cli/run.php index 06630eab8f5..6e196598ff3 100644 --- a/admin/tool/behat/cli/run.php +++ b/admin/tool/behat/cli/run.php @@ -108,7 +108,7 @@ if (extension_loaded('pcntl')) { $time = microtime(true); array_walk($unrecognised, function (&$v) { - if ($x = preg_filter("#^(-+\w+)=(.+)#", "\$1='\$2'", $v)) { + if ($x = preg_filter("#^(-+\w+)=(.+)#", "\$1=\"\$2\"", $v)) { $v = $x; } else if (!preg_match("#^-#", $v)) { $v = escapeshellarg($v); @@ -124,7 +124,7 @@ if ($options['profile']) { echo "Invalid profile passed: " . $profile; exit(1); } - $extraopts[] = '--profile=\'' . $profile . "'"; + $extraopts[] = '--profile="' . $profile . '"'; // By default, profile tags will be used. if (!empty($CFG->behat_config[$profile]['filters']['tags'])) { $tags = $CFG->behat_config[$profile]['filters']['tags'];