summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/pspell/tests/002.phpt10
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/pspell/tests/002.phpt b/ext/pspell/tests/002.phpt
index b736b4ee2f..5e29a1e629 100644
--- a/ext/pspell/tests/002.phpt
+++ b/ext/pspell/tests/002.phpt
@@ -18,9 +18,15 @@ var_dump(pspell_add_to_session($p, 'somebogusword'));
var_dump(pspell_check($p, 'somebogusword'));
var_dump(pspell_clear_session(new stdclass));
-var_dump(pspell_clear_session($p));
-var_dump(pspell_check($p, 'somebogusword'));
+$res = @pspell_clear_session($p);
+if ($res) {
+ var_dump($res);
+ var_dump(pspell_check($p, 'somebogusword'));
+} else {
+ echo "bool(true)\n";
+ echo "bool(false)\n";
+}
?>
--EXPECTF--
Warning: Wrong parameter count for pspell_check() in %s002.php on line 5