summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2006-06-29 22:54:31 +0000
committerIlia Alshanetsky <iliaa@php.net>2006-06-29 22:54:31 +0000
commit9048ae292cdc43251536acdabcb4e51adefe94a7 (patch)
tree42f25b497d877095e993c47d05db796f8e5e0679
parent6c37c9fa0aca4773346455418e73820cd4c3c892 (diff)
downloadphp-git-9048ae292cdc43251536acdabcb4e51adefe94a7.tar.gz
Fixed test for situations where pspell_clear_session() is unavailable.
-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