1--TEST--
2enchant_broker_get_error() 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");}
10?>
11--FILE--
12<?php
13$broker = enchant_broker_init();
14if (is_object($broker)) {
15    echo("OK\n");
16    $enchantErr = enchant_broker_get_error($broker);
17
18    if ("" == $enchantErr) {
19        echo("OK\n");
20    } else {
21        echo("enchant failed ==>" . $enchantErr);
22    }
23} else {
24    echo("init failed\n");
25}
26echo "OK\n";
27?>
28--EXPECT--
29OK
30OK
31OK
32