1--TEST--
2enchant_dict_quick_check() basic test
3--CREDITS--
4marcosptf - <marcosptf@yahoo.com.br>
5--SKIPIF--
6<?php
7if(!extension_loaded('enchant')) die('skip, enchant not loader');
8if (!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");}
9if (!is_array(enchant_broker_list_dicts(enchant_broker_init()))) {die("skip, dont has dictionary install in this machine! \n");}
10
11$tag = 'en_US';
12$r = enchant_broker_init();
13if (!enchant_broker_dict_exists($r, $tag))
14    die('skip, no dictionary for ' . $tag . ' tag');
15?>
16--FILE--
17<?php
18
19$tag = 'en_US';
20$r = enchant_broker_init();
21
22$d = enchant_broker_request_dict($r, $tag);
23enchant_dict_quick_check($d, 'soong', $suggs);
24
25echo "Elements: " . count($suggs) . "\n";
26echo "Done\n";
27?>
28--EXPECTF--
29Elements: %d
30Done
31