xref: /php-src/ext/enchant/tests/broker_free.phpt (revision 74859783)
1--TEST--
2enchant_broker_free() 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    enchant_broker_free($broker);
17
18} else {
19    exit("init failed\n");
20}
21echo "OK\n";
22?>
23--EXPECTF--
24OK
25
26Deprecated: Function enchant_broker_free() is deprecated in %s
27OK
28