From: Kalle Sommer Nielsen Date: Tue, 25 Jul 2017 20:10:34 +0000 (+0200) Subject: Skip these enchant tests if no dicts or providers are installed X-Git-Tag: php-7.3.0alpha1~1787 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=069477f2c1496e473c0f7b76c9b29a5549d7b517;p=php Skip these enchant tests if no dicts or providers are installed --- diff --git a/ext/enchant/tests/broker_describe.phpt b/ext/enchant/tests/broker_describe.phpt index 224902f579..721d618df3 100644 --- a/ext/enchant/tests/broker_describe.phpt +++ b/ext/enchant/tests/broker_describe.phpt @@ -4,8 +4,25 @@ enchant_broker_describe() function marcosptf - --SKIPIF-- --FILE-- --SKIPIF-- --FILE-- +if (!enchant_broker_list_dicts($broker)) { + enchant_broker_free($broker); + + echo "skip: No broker dicts installed\n"; +} + +enchant_broker_free($broker); +?> --FILE--