1--TEST--
2enchant_broker_describe() function
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br>
5--SKIPIF--
6<?php
7if(!extension_loaded('enchant')) die('skip, enchant not loader');
8if(!enchant_broker_init()) die("failed, broker_init failure\n");
9?>
10--FILE--
11<?php
12$broker = enchant_broker_init();
13$counter = 0;
14
15if($broker) {
16    echo("OK\n");
17    $provider = enchant_broker_describe($broker);
18
19    if (is_array($provider)) {
20        echo("OK\n");
21
22	if ((isset($provider[$counter]['name']) && isset($provider[$counter]['desc']) && isset($provider[$counter]['file']))) {
23	   echo("OK\n");
24
25	} else {
26	   echo("failed, broker describe\n");
27
28	}
29    } else {
30        echo "failed, brocker describe array \n";
31    }
32
33} else {
34    echo("failed, broker_init failure\n");
35}
36?>
37--EXPECT--
38OK
39OK
40OK
41