1--TEST--
2enchant_broker_list_dicts() function
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br>
5--SKIPIF--
6<?php
7if (!extension_loaded('enchant')) {
8	echo "skip: Enchant extension not enabled\n";
9	exit;
10}
11
12$broker = enchant_broker_init();
13
14if (!$broker) {
15	echo "skip: Unable to init broker\n";
16	exit;
17}
18
19if (!enchant_broker_list_dicts($broker)) {
20	enchant_broker_free($broker);
21
22	echo "skip: No broker dicts installed\n";
23}
24
25enchant_broker_free($broker);
26?>
27--FILE--
28<?php
29$broker = enchant_broker_init();
30if (is_resource($broker)) {
31    echo("OK\n");
32    $brokerListDicts = enchant_broker_list_dicts($broker);
33
34    if (is_array($brokerListDicts)) {
35        echo("OK\n");
36    } else {
37        echo("broker list dicts failed\n");
38    }
39} else {
40    echo("init failed\n");
41}
42?>
43--EXPECT--
44OK
45OK
46