projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
tests: fix self-dump validation
[m6w6/ext-psi]
/
tests
/
parser
/
dump001.phpt
diff --git
a/tests/parser/dump001.phpt
b/tests/parser/dump001.phpt
index 13e8a2f22e5e6ecffa8d3dd7e24796882b2eb12b..441bec3d7991ca94a9cd44cb2e121f0c72a74759 100644
(file)
--- a/
tests/parser/dump001.phpt
+++ b/
tests/parser/dump001.phpt
@@
-4,6
+4,8
@@
parse dump
<?php
extension_loaded("psi") or die("skip - need ext/psi");
?>
<?php
extension_loaded("psi") or die("skip - need ext/psi");
?>
+--INI--
+psi.directory={PWD}/../../psi.d
--FILE--
===TEST===
<?php
--FILE--
===TEST===
<?php
@@
-13,16
+15,17
@@
psi_dump($fd);
fclose($fd);
var_dump(file_exists($fn));
fclose($fd);
var_dump(file_exists($fn));
-var_dump(psi_validate($fn
)
);
+var_dump(psi_validate($fn
, 0, $e), $e
);
@unlink(__DIR__."/dump001.psi");
?>
===DONE===
@unlink(__DIR__."/dump001.psi");
?>
===DONE===
---EXPECT--
+--EXPECT
F
--
===TEST===
bool(true)
bool(true)
===TEST===
bool(true)
bool(true)
+int(%d)
===DONE===
--CLEAN--
<?php
===DONE===
--CLEAN--
<?php