]> granicus.if.org Git - php/commitdiff
Update broker_init.phpt
authormarcosptf <marcosptf@yahoo.com.br>
Sun, 9 Aug 2015 10:35:59 +0000 (07:35 -0300)
committermarcosptf <marcosptf@yahoo.com.br>
Sun, 9 Aug 2015 10:35:59 +0000 (07:35 -0300)
ext/enchant/tests/broker_init.phpt

index 359a653359e854aaca02330af9f91302cc7595d9..12c25e3ddc02a5de068ead355d4c23459f83e4fd 100644 (file)
@@ -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