Created
March 8, 2016 03:18
-
-
Save nojimage/8b392f6acbb9a779c918 to your computer and use it in GitHub Desktop.
codeception path fix for 2.1.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vendor/codeception/codeception/src/Codeception/Lib/Parser.php b/vendor/codeception/codeception/src/Codeception/Lib/Parser.php | |
index 7e6987a..543b155 100644 | |
--- a/vendor/codeception/codeception/src/Codeception/Lib/Parser.php | |
+++ b/vendor/codeception/codeception/src/Codeception/Lib/Parser.php | |
@@ -126,7 +126,7 @@ protected function addCommentStep($comment) | |
public static function validate($file) | |
{ | |
- exec("php -l $file 2>&1", $output, $code); | |
+ exec("php -l '$file' 2>&1", $output, $code); | |
if ($code !== 0) { | |
throw new TestParseException($file, implode("\n", $output)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment