mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Create broker_dict_exists.phpt
This commit is contained in:
parent
53560ca06b
commit
1dd428afd2
24
ext/enchant/tests/broker_dict_exists.phpt
Normal file
24
ext/enchant/tests/broker_dict_exists.phpt
Normal file
@ -0,0 +1,24 @@
|
||||
--TEST--
|
||||
enchant_broker_dict_exists() function
|
||||
--CREDITS--
|
||||
marcosptf - <marcosptf@yahoo.com.br>
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if(!extension_loaded('enchant')) die('skip, enchant not loader');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$lang="en_US";
|
||||
$broker = enchant_broker_init();
|
||||
if (!is_resource($broker)) {
|
||||
exit("init failed\n");
|
||||
}
|
||||
|
||||
if (enchant_broker_dict_exists($broker,$lang)) {
|
||||
echo("OK\n");
|
||||
} else {
|
||||
echo("dicts dont exist failed\n");
|
||||
}
|
||||
?>
|
||||
--EXPECT--
|
||||
OK
|
Loading…
Reference in New Issue
Block a user