Skip to content

Instantly share code, notes, and snippets.

@nojimage
Created March 8, 2016 03:18
Show Gist options
  • Save nojimage/8b392f6acbb9a779c918 to your computer and use it in GitHub Desktop.
Save nojimage/8b392f6acbb9a779c918 to your computer and use it in GitHub Desktop.
codeception path fix for 2.1.5
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