com php-src: Update broker_list_dicts.phpt: ext/encha nt/tests/broker_list_dicts.phpt

From: Date: Sun, 09 Aug 2015 10:37:50 +0000
Subject: com php-src: Update broker_list_dicts.phpt: ext/encha nt/tests/broker_list_dicts.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88421@lists.php.net to get a copy of this message
Commit: 9d3818c4cb92cc5620e37fe4b732f2085e297c39 Author: marcosptf <marcosptf@yahoo.com.br> Sun, 9 Aug 2015 07:37:50 -0300 Parents: 58c77c361072cdeb7030c90bdbf429feaed0af74 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9d3818c4cb92cc5620e37fe4b732f2085e297c39 Log: Update broker_list_dicts.phpt Changed paths: M ext/enchant/tests/broker_list_dicts.phpt Diff: diff --git a/ext/enchant/tests/broker_list_dicts.phpt b/ext/enchant/tests/broker_list_dicts.phpt index 47dd318..a634734 100644 --- a/ext/enchant/tests/broker_list_dicts.phpt +++ b/ext/enchant/tests/broker_list_dicts.phpt @@ -3,8 +3,9 @@ enchant_broker_list_dicts() function --CREDITS-- marcosptf - <marcosptf@yahoo.com.br> --SKIPIF-- -<?php +<?php if(!extension_loaded('enchant')) die('skip, enchant not loader'); +if (!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");} ?> --FILE-- <?php @@ -14,14 +15,13 @@ if (is_resource($broker)) { $brokerListDicts = enchant_broker_list_dicts($broker); if (is_array($brokerListDicts)) { - echo("OK\n"); + echo("OK\n"); } else { - exit("broker list dicts failed\n"); - } + echo("broker list dicts failed\n"); + } } else { - exit("init failed\n"); + echo("init failed\n"); } - ?> --EXPECT-- OK

« previous php.cvs (#88421) next »