cvs: php4 /ext/pspell/tests 01pspell_basic.phpt
| From: | Ilia Alshanetsky | Date: | Fri, 08 Nov 2002 01:09:47 +0000 |
| Subject: | cvs: php4 /ext/pspell/tests 01pspell_basic.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15894@lists.php.net to get a copy of this message | ||
iliaa Thu Nov 7 20:09:47 2002 EDT
Modified files:
/php4/ext/pspell/tests 01pspell_basic.phpt
Log:
Added a skip condition if the English dictionary needed for the test is not
avaliable.
Index: php4/ext/pspell/tests/01pspell_basic.phpt
diff -u php4/ext/pspell/tests/01pspell_basic.phpt:1.1 php4/ext/pspell/tests/01pspell_basic.phpt:1.2
--- php4/ext/pspell/tests/01pspell_basic.phpt:1.1 Sun Mar 24 11:22:50 2002
+++ php4/ext/pspell/tests/01pspell_basic.phpt Thu Nov 7 20:09:47 2002
@@ -1,11 +1,16 @@
--TEST--
pspell basic tests
--SKIPIF--
-<?php if (!extension_loaded("pspell")) print "skip"; ?>
+<?php
+ if (!extension_loaded("pspell")) print "skip";
+ if (!@pspell_new ("en", "", "", "",
(PSPELL_FAST|PSPELL_RUN_TOGETHER))) {
+ die("skip English dictionary is not avaliable");
+ }
+?>
--POST--
--GET--
--FILE--
-<?php // $Id: 01pspell_basic.phpt,v 1.1 2002/03/24 16:22:50 jan Exp $
+<?php // $Id: 01pspell_basic.phpt,v 1.2 2002/11/08 01:09:47 iliaa Exp $
error_reporting(E_ALL);
$string = "";