From 661f6a7159f3ccc4302a5b1eefd701894bbc5527 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 29 Jun 2006 22:54:42 +0000 Subject: [PATCH] MFB: Fixed test for situations where pspell_clear_session() is unavailable. --- ext/pspell/tests/002.phpt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ext/pspell/tests/002.phpt b/ext/pspell/tests/002.phpt index b736b4ee2ff..5e29a1e629a 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