com php-src: Update broker_init.phpt: ext/enchant/tests /broker_init.phpt

From: Date: Sun, 09 Aug 2015 10:35:59 +0000
Subject: com php-src: Update broker_init.phpt: ext/enchant/tests /broker_init.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88445@lists.php.net to get a copy of this message
Commit: 58c77c361072cdeb7030c90bdbf429feaed0af74 Author: marcosptf <marcosptf@yahoo.com.br> Sun, 9 Aug 2015 07:35:59 -0300 Parents: 41917099158f1300d57025473f08cffae3c139ba Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=58c77c361072cdeb7030c90bdbf429feaed0af74 Log: Update broker_init.phpt Changed paths: M ext/enchant/tests/broker_init.phpt Diff: diff --git a/ext/enchant/tests/broker_init.phpt b/ext/enchant/tests/broker_init.phpt index 359a653..12c25e3 100644 --- a/ext/enchant/tests/broker_init.phpt +++ b/ext/enchant/tests/broker_init.phpt @@ -1,15 +1,20 @@ --TEST-- enchant_broker_init() function +--CREDITS-- +marcosptf - <marcosptf@yahoo.com.br> --SKIPIF-- <?php if(!extension_loaded('enchant')) die('skip, enchant not loader'); - +if (!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");} ?> --FILE-- <?php $broker = enchant_broker_init(); -echo is_resource($broker) ? "OK" : "Failure"; -echo "\n"; +if (is_resource($broker)) { + echo("OK\n"); +} else { + echo("failure, its not a resource\n"); +} ?> --EXPECT-- OK

« previous php.cvs (#88445) next »