bison
[m6w6/ext-psi] / tests / parser / validate003.phpt
diff --git a/tests/parser/validate003.phpt b/tests/parser/validate003.phpt
new file mode 100644 (file)
index 0000000..f597d24
--- /dev/null
@@ -0,0 +1,18 @@
+--TEST--
+validate types
+--SKIPIF--
+<?php 
+extension_loaded("psi") or die("skip - need ext/psi");
+?>
+--FILE--
+===TEST===
+<?php 
+
+psi_validate_string("typedef long int;");
+?>
+===DONE===
+--EXPECTF--
+===TEST===
+
+Warning: PSI syntax error, unexpected ;, expecting %s at col 17 in %s on line 1
+===DONE===