xref: /PHP-7.1/ext/enchant/tests/broker_free.phpt (revision 7af945e2)
1--TEST--
2enchant_broker_free() 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    enchant_broker_free($broker);
16
17} else {
18    exit("init failed\n");
19}
20echo "OK\n";
21?>
22--EXPECT--
23OK
24OK
25