From e7067211e7f470bf013ba0b1b08676c9250e079a Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Wed, 10 Feb 2016 09:04:29 +0000 Subject: [PATCH] Fixed the PHP test. --- golden-files/results/bcpp-root_php | 7 ------- golden-files/results/php5_syntax-root_php | 1 + tools_test.py | 2 +- 3 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 golden-files/results/bcpp-root_php create mode 100644 golden-files/results/php5_syntax-root_php diff --git a/golden-files/results/bcpp-root_php b/golden-files/results/bcpp-root_php deleted file mode 100644 index 63bb3f8..0000000 --- a/golden-files/results/bcpp-root_php +++ /dev/null @@ -1,7 +0,0 @@ - -  \ No newline at end of file diff --git a/golden-files/results/php5_syntax-root_php b/golden-files/results/php5_syntax-root_php new file mode 100644 index 0000000..1d12a68 --- /dev/null +++ b/golden-files/results/php5_syntax-root_php @@ -0,0 +1 @@ +No syntax errors detected in ./input/root.php diff --git a/tools_test.py b/tools_test.py index 739802c..86f2cfa 100755 --- a/tools_test.py +++ b/tools_test.py @@ -178,7 +178,7 @@ class ToolsTestCase(unittest.TestCase): self._test_tool(tools.bcpp, [("hello.cpp", tools.Status.normal)]) def test_php5_syntax(self): - self._test_tool(tools.bcpp, [("root.php", tools.Status.normal)]) + self._test_tool(tools.php5_syntax, [("root.php", tools.Status.ok)]) if __name__ == "__main__":