blob: 4c03f6f4dd91437339dcdc897cae5600c0f33e4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
--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
|