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