com php-src: Create broker_set_ordering.phpt: ext/enc hant/tests/broker_set_ordering.phpt
| From: | Xinchen Hui | Date: | Fri, 07 Aug 2015 14:33:03 +0000 |
| Subject: | com php-src: Create broker_set_ordering.phpt: ext/enc hant/tests/broker_set_ordering.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-88438@lists.php.net to get a copy of this message | ||
Commit: d0bbbbabcf2591f9732da3584a268dab3b0be40e
Author: marcosptf <marcosptf@yahoo.com.br> Fri, 7 Aug 2015 11:33:03 -0300
Parents: a0896433c063b5748d1596497cab882ef8d1e655
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d0bbbbabcf2591f9732da3584a268dab3b0be40e
Log:
Create broker_set_ordering.phpt
Changed paths:
A ext/enchant/tests/broker_set_ordering.phpt
Diff:
diff --git a/ext/enchant/tests/broker_set_ordering.phpt b/ext/enchant/tests/broker_set_ordering.phpt
new file mode 100644
index 0000000..8e8f8e9
--- /dev/null
+++ b/ext/enchant/tests/broker_set_ordering.phpt
@@ -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