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