mirror of
https://github.com/php/php-src.git
synced 2024-12-23 00:40:33 +08:00
29 lines
522 B
PHP
29 lines
522 B
PHP
--TEST--
|
|
enchant_broker_describe() function
|
|
--SKIPIF--
|
|
<?php
|
|
if(!extension_loaded('enchant')) die('skip, enchant not loader');
|
|
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$broker = enchant_broker_init();
|
|
|
|
if(!$broker) exit("failed, broker_init failure\n");
|
|
|
|
$provides = enchant_broker_describe($broker);
|
|
|
|
if (is_array($provides)) {
|
|
foreach ($provides as $backend) {
|
|
if (!(isset($backend['name']) && isset($backend['desc']) && isset($backend['file']))) {
|
|
exit("failed\n");
|
|
}
|
|
}
|
|
exit("OK\n");
|
|
} else {
|
|
echo "failed";
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
OK
|