bison
[m6w6/ext-psi] / tests / parser / validate005.phpt
diff --git a/tests/parser/validate005.phpt b/tests/parser/validate005.phpt
new file mode 100644 (file)
index 0000000..1638aaa
--- /dev/null
@@ -0,0 +1,25 @@
+--TEST--
+validate types
+--SKIPIF--
+<?php 
+extension_loaded("psi") or die("skip - need ext/psi");
+?>
+--FILE--
+===TEST===
+<?php 
+psi_validate_string(
+<<<PSI
+enum {
+       A,
+       B = A + 2,
+       C = X
+}
+PSI
+);
+?>
+===DONE===
+--EXPECTF--
+===TEST===
+
+Warning: Unknown variable 'X' in numeric expression in %s on line 4
+===DONE===