com php-src: Create broker_dict_exists.phpt: ext/ench ant/tests/broker_dict_exists.phpt

From: Date: Fri, 07 Aug 2015 14:25:33 +0000
Subject: com php-src: Create broker_dict_exists.phpt: ext/ench ant/tests/broker_dict_exists.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-88443@lists.php.net to get a copy of this message
Commit: 1dd428afd20bb9ed705108561e4375902540acad Author: marcosptf <marcosptf@yahoo.com.br> Fri, 7 Aug 2015 11:25:33 -0300 Parents: 53560ca06b333b71883269091f7d74c0a25e087b Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1dd428afd20bb9ed705108561e4375902540acad Log: Create broker_dict_exists.phpt Changed paths: A ext/enchant/tests/broker_dict_exists.phpt Diff: diff --git a/ext/enchant/tests/broker_dict_exists.phpt b/ext/enchant/tests/broker_dict_exists.phpt new file mode 100644 index 0000000..15ba5da --- /dev/null +++ b/ext/enchant/tests/broker_dict_exists.phpt @@ -0,0 +1,24 @@ +--TEST-- +enchant_broker_dict_exists() function +--CREDITS-- +marcosptf - <marcosptf@yahoo.com.br> +--SKIPIF-- +<?php +if(!extension_loaded('enchant')) die('skip, enchant not loader'); +?> +--FILE-- +<?php +$lang="en_US"; +$broker = enchant_broker_init(); +if (!is_resource($broker)) { + exit("init failed\n"); +} + +if (enchant_broker_dict_exists($broker,$lang)) { + echo("OK\n"); +} else { + echo("dicts dont exist failed\n"); +} +?> +--EXPECT-- +OK

« previous php.cvs (#88443) next »