Annotation of embedaddon/php/ext/enchant/tests/dict_quick_check.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: enchant_dict_quick_check() basic test
3: --SKIPIF--
4: <?php
5: if(!extension_loaded('enchant')) die('skip, enchant not loader');
6:
7: $tag = 'en_US';
8: $r = enchant_broker_init();
9: if (!enchant_broker_dict_exists($r, $tag))
10: die('skip, no dictionary for ' . $tag . ' tag');
11: ?>
12: --FILE--
13: <?php
14:
15: $tag = 'en_US';
16: $r = enchant_broker_init();
17:
18: $d = enchant_broker_request_dict($r, $tag);
19: enchant_dict_quick_check($d, 'soong', $suggs);
20:
21: echo "Elements: " . count($suggs) . "\n";
22: echo "Done\n";
23: ?>
24: --EXPECTF--
25: Elements: %d
26: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>