]> granicus.if.org Git - php/commitdiff
Update dict_describe.phpt
authormarcosptf <marcosptf@yahoo.com.br>
Fri, 7 Aug 2015 17:04:53 +0000 (14:04 -0300)
committermarcosptf <marcosptf@yahoo.com.br>
Fri, 7 Aug 2015 17:04:53 +0000 (14:04 -0300)
ext/enchant/tests/dict_describe.phpt

index 910f0af63645c8ff9719c07edc411dbb5a5bf430..e2d53988d9a907ad34fa342be6fde867b1ea4329 100644 (file)
@@ -16,26 +16,24 @@ if (is_resource($broker)) {
     $requestDict = enchant_broker_request_dict($broker,$lang);
     
     if ($requestDict) {
-        var_dump(enchant_dict_describe($requestDict));    
-        
+        echo("OK\n");
+       $dictDescribe = enchant_dict_describe($requestDict);
+       
+        if (is_array($dictDescribe)) {
+            echo("OK\n");
+            
+        } else {
+           echo("broker request dict failed\n");        
+        }      
     } else {
        echo("broker request dict failed\n");        
-    
     }
 
 } else {
     echo("broker is not a resource; failed;\n");
 }
 ?>
---EXPECTF--
+--EXPECT--
+OK
+OK
 OK
-array(%d) {
-  ["lang"]=>
-  string(%d) "en"
-  ["name"]=>
-  string(%d) "myspell"
-  ["desc"]=>
-  string(%d) "Myspell Provider"
-  ["file"]=>
-  string(%d) "/usr/lib/enchant/libenchant_myspell.so"
-}