]> granicus.if.org Git - php/commitdiff
Added a skip condition if the English dictionary needed for the test is not
authorIlia Alshanetsky <iliaa@php.net>
Fri, 8 Nov 2002 01:09:47 +0000 (01:09 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 8 Nov 2002 01:09:47 +0000 (01:09 +0000)
avaliable.

ext/pspell/tests/01pspell_basic.phpt

index 751c91a2112902396df2be2eecdc69ae0a7a5145..5efccab8faf932144d20bf8ed8fd82cf704609d4 100644 (file)
@@ -1,7 +1,12 @@
 --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--