new test
[m6w6/ext-psi] / tests / parser / cpp005.phpt
diff --git a/tests/parser/cpp005.phpt b/tests/parser/cpp005.phpt
new file mode 100644 (file)
index 0000000..6560247
--- /dev/null
@@ -0,0 +1,34 @@
+--TEST--
+CPP expansion
+--SKIPIF--
+<?php 
+extension_loaded("psi") or die("skip - need ext/psi");
+?>
+--INI--
+psi.directory={PWD}/cpp005
+--FILE--
+===TEST===
+<?php 
+?>
+===DONE===
+--EXPECTF--
+PHP Warning:  PSI syntax error, unexpected NUMBER, expecting ) or "," at col 11 in %stests/parser/cpp005/expansion.psi on line 2
+PHP Warning:  PSI preceding token 'bar' at col 1 in %stests/parser/cpp005/expansion.psi on line 2
+PHP Warning:  PSI preceding token 'foo' at col 1 in %stests/parser/cpp005/expansion.psi on line 2
+PHP Warning:  PSI preceding token '(' at col 10 in %stests/parser/cpp005/expansion.psi on line 2
+PHP Warning:  PSI offending token '2' at col 11 in %stests/parser/cpp005/expansion.psi on line 2
+PHP Warning:  PSI following token ')' at col 12 in %stests/parser/cpp005/expansion.psi on line 2
+
+Warning: PSI syntax error, unexpected NUMBER, expecting ) or "," at col 11 in %stests/parser/cpp005/expansion.psi on line 2
+
+Warning: PSI preceding token 'bar' at col 1 in %stests/parser/cpp005/expansion.psi on line 2
+
+Warning: PSI preceding token 'foo' at col 1 in %stests/parser/cpp005/expansion.psi on line 2
+
+Warning: PSI preceding token '(' at col 10 in %stests/parser/cpp005/expansion.psi on line 2
+
+Warning: PSI offending token '2' at col 11 in %stests/parser/cpp005/expansion.psi on line 2
+
+Warning: PSI following token ')' at col 12 in %stests/parser/cpp005/expansion.psi on line 2
+===TEST===
+===DONE===