1--TEST--
2enchant_broker_set_ordering() function
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br>
5--EXTENSIONS--
6enchant
7--SKIPIF--
8<?php
9if (!is_object(enchant_broker_init())) {die("skip, resource dont load\n");}
10if (!is_array(enchant_broker_list_dicts(enchant_broker_init()))) {die("skip, no dictionary installed on this machine! \n");}
11?>
12--FILE--
13<?php
14$broker = enchant_broker_init();
15$dicts = enchant_broker_list_dicts($broker);
16$comma = ";";
17
18if (is_object($broker)) {
19    echo("OK\n");
20    if (enchant_broker_set_ordering($broker,$dicts[0]['lang_tag'],$comma)) {
21        echo("OK\n");
22    } else {
23        echo("enchant failed ==>" . $enchantErr);
24    }
25} else {
26    echo("init failed\n");
27}
28echo "OK\n";
29?>
30--EXPECT--
31OK
32OK
33OK
34