1--TEST-- 2enchant_broker_describe() function 3--SKIPIF-- 4<?php 5if(!extension_loaded('enchant')) die('skip, enchant not loader'); 6 7 ?> 8--FILE-- 9<?php 10$broker = enchant_broker_init(); 11 12if(!$broker) exit("failed, broker_init failure\n"); 13 14$provides = enchant_broker_describe($broker); 15 16if (is_array($provides)) { 17 foreach ($provides as $backend) { 18 if (!(isset($backend['name']) && isset($backend['desc']) && isset($backend['file']))) { 19 exit("failed\n"); 20 } 21 } 22 exit("OK\n"); 23} else { 24 echo "failed"; 25} 26?> 27--EXPECTF-- 28OK 29