mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Create broker_set_ordering.phpt
This commit is contained in:
parent
a0896433c0
commit
d0bbbbabcf
30
ext/enchant/tests/broker_set_ordering.phpt
Normal file
30
ext/enchant/tests/broker_set_ordering.phpt
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
--TEST--
|
||||||
|
enchant_broker_set_ordering() function
|
||||||
|
--CREDITS--
|
||||||
|
marcosptf - <marcosptf@yahoo.com.br>
|
||||||
|
--SKIPIF--
|
||||||
|
<?php
|
||||||
|
if(!extension_loaded('enchant')) die('skip, enchant not loader');
|
||||||
|
?>
|
||||||
|
--FILE--
|
||||||
|
<?php
|
||||||
|
$broker = enchant_broker_init();
|
||||||
|
$lang = "us_US";
|
||||||
|
$comma = ";";
|
||||||
|
|
||||||
|
if (is_resource($broker)) {
|
||||||
|
echo("OK\n");
|
||||||
|
if (enchant_broker_set_ordering($broker,$lang,$comma)) {
|
||||||
|
echo("OK\n");
|
||||||
|
} else {
|
||||||
|
echo("enchant failed ==>" . $enchantErr);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
echo("init failed\n");
|
||||||
|
}
|
||||||
|
echo "OK\n";
|
||||||
|
?>
|
||||||
|
--EXPECT--
|
||||||
|
OK
|
||||||
|
OK
|
||||||
|
OK
|
Loading…
Reference in New Issue
Block a user