1--TEST-- 2enchant_broker_dict_exists() function 3--CREDITS-- 4marcosptf - <marcosptf@yahoo.com.br> 5--SKIPIF-- 6<?php 7if(!extension_loaded('enchant')) die('skip, enchant not loader'); 8if (!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");} 9if (!is_array(enchant_broker_list_dicts(enchant_broker_init()))) {die("skip, dont has dictionary install in this machine! \n");} 10?> 11--FILE-- 12<?php 13$broker = enchant_broker_init(); 14$dicts = enchant_broker_list_dicts($broker); 15 16if (enchant_broker_dict_exists($broker, $dicts[0]['lang_tag'])) { 17 echo("OK\n"); 18} else { 19 echo("dicts dont exist failed\n"); 20} 21?> 22--EXPECT-- 23OK 24