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 = "";
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php