Added a test for PHP.
This commit is contained in:
parent
db660521fa
commit
7829bad0ec
3 changed files with 17 additions and 0 deletions
6
golden-files/input/root.php
Normal file
6
golden-files/input/root.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
////////////////////////////////////
|
||||
// I am not Isabelle ROOT //
|
||||
////////////////////////////////////
|
||||
|
||||
?>
|
||||
7
golden-files/results/bcpp-root_php
Normal file
7
golden-files/results/bcpp-root_php
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[0m[38;2;205;40;40m[48;2;0;0;0m[1m<?php[0m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[0m[38;2;208;208;208m[48;2;0;0;0m [0m[38;2;153;153;153m[48;2;0;0;0m[3m////////////////////////////////////[0m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[0m[38;2;208;208;208m[48;2;0;0;0m [0m[38;2;153;153;153m[48;2;0;0;0m[3m// I am not Isabelle ROOT //[0m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[0m[38;2;208;208;208m[48;2;0;0;0m [0m[38;2;153;153;153m[48;2;0;0;0m[3m////////////////////////////////////[0m[38;2;255;255;255m[48;2;0;0;0m
|
||||
|
||||
[0m[38;2;205;40;40m[48;2;0;0;0m[1m?>[0m[38;2;255;255;255m[48;2;0;0;0m
|
||||
[0m
|
||||
|
|
@ -146,6 +146,10 @@ class ToolsTestCase(unittest.TestCase):
|
|||
self._sub_tests([
|
||||
(tools.bcpp, "hello.cpp", tools.Status.normal)])
|
||||
|
||||
def test_php5_syntax(self):
|
||||
self._sub_tests([
|
||||
(tools.bcpp, "root.php", tools.Status.normal)])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
golden.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue