mirror of
https://github.com/php/php-src.git
synced 2024-12-15 21:05:51 +08:00
21 lines
424 B
PHP
21 lines
424 B
PHP
--TEST--
|
|
enchant_broker_init() function
|
|
--CREDITS--
|
|
marcosptf - <marcosptf@yahoo.com.br>
|
|
--SKIPIF--
|
|
<?php
|
|
if(!extension_loaded('enchant')) die('skip, enchant not loader');
|
|
if (!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$broker = enchant_broker_init();
|
|
if (is_resource($broker)) {
|
|
echo("OK\n");
|
|
} else {
|
|
echo("failure, its not a resource\n");
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
OK
|