mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Improved reliability of PhpSyntaxTest on build slave.
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@88522 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1fce2e614b
commit
596c73c683
@ -25,7 +25,7 @@ class PhpSyntaxTest extends SapphireTest {
|
||||
$returnCode = 0;
|
||||
$output = array();
|
||||
exec("php -l -d $settingTest $CLI_file", $output, $returnCode);
|
||||
$hasErrors = ($returnCode != 0 && strpos('No syntax errors detected', $returnCode) === FALSE);
|
||||
$hasErrors = ($returnCode != 0 && strpos('No syntax errors detected', implode("\n", $output)) === FALSE);
|
||||
$this->assertFalse($hasErrors, "Syntax error parsing $CLI_file with setting $settingTest:\n" . implode("\n", $output) . " (Returned: {$returnCode})");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user