xref: /PHP-7.1/ext/enchant/tests/broker_init.phpt (revision 7af945e2)
1--TEST--
2enchant_broker_init() function
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br>
5--SKIPIF--
6<?php
7if(!extension_loaded('enchant')) die('skip, enchant not loader');
8if (!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");}
9 ?>
10--FILE--
11<?php
12$broker = enchant_broker_init();
13if (is_resource($broker)) {
14    echo("OK\n");
15} else {
16    echo("failure, its not a resource\n");
17}
18?>
19--EXPECT--
20OK
21