type parser fixes
[m6w6/ext-psi] / tests / parser / dump / dump001.phpt
diff --git a/tests/parser/dump/dump001.phpt b/tests/parser/dump/dump001.phpt
new file mode 100644 (file)
index 0000000..68f23c2
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+parse dump
+--SKIPIF--
+<?php 
+extension_loaded("psi") or die("skip - need ext/psi");
+?>
+--FILE--
+===TEST===
+<?php 
+echo shell_exec("PSI_DUMP=1 ".PHP_BINARY." -r '' > ".__DIR__."/dump.psi");
+var_dump(file_exists(__DIR__."/dump.psi"));
+echo shell_exec(PHP_BINARY." -d psi.directory=".__DIR__." -r ''");
+?>
+===DONE===
+--EXPECT--
+===TEST===
+bool(true)
+===DONE===
+--CLEAN--
+<?php 
+@unlink(__DIR__."/dump.psi");
+?>
\ No newline at end of file