com php-src: Update dict_describe.phpt: ext/enchant/tes ts/dict_describe.phpt

From: Date: Fri, 07 Aug 2015 17:04:53 +0000
Subject: com php-src: Update dict_describe.phpt: ext/enchant/tes ts/dict_describe.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88453@lists.php.net to get a copy of this message
Commit: 696ce3f1e74aa25a6c79a1a1047805dae39e36c4 Author: marcosptf <marcosptf@yahoo.com.br> Fri, 7 Aug 2015 14:04:53 -0300 Parents: b9d40accc4f35a3fdd7375bcf61dc0708be3b150 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=696ce3f1e74aa25a6c79a1a1047805dae39e36c4 Log: Update dict_describe.phpt Changed paths: M ext/enchant/tests/dict_describe.phpt Diff: diff --git a/ext/enchant/tests/dict_describe.phpt b/ext/enchant/tests/dict_describe.phpt index 910f0af..e2d5398 100644 --- a/ext/enchant/tests/dict_describe.phpt +++ b/ext/enchant/tests/dict_describe.phpt @@ -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" -}

« previous php.cvs (#88453) next »