cvs: php-src /ext/pspell/tests 002.phpt
| From: | Ilia Alshanetsky | Date: | Thu, 29 Jun 2006 22:54:42 +0000 |
| Subject: | cvs: php-src /ext/pspell/tests 002.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39000@lists.php.net to get a copy of this message | ||
iliaa Thu Jun 29 22:54:42 2006 UTC
Modified files:
/php-src/ext/pspell/tests 002.phpt
Log:
MFB: Fixed test for situations where pspell_clear_session() is unavailable.
http://cvs.php.net/viewvc.cgi/php-src/ext/pspell/tests/002.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/pspell/tests/002.phpt
diff -u php-src/ext/pspell/tests/002.phpt:1.2 php-src/ext/pspell/tests/002.phpt:1.3
--- php-src/ext/pspell/tests/002.phpt:1.2 Wed Jun 28 14:42:32 2006
+++ php-src/ext/pspell/tests/002.phpt Thu Jun 29 22:54:42 2006
@@ -18,9 +18,15 @@
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