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