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 (getenv('SKIP_ASAN')) die('skip Known libenchant memory leak');
9if (!is_object(enchant_broker_init())) {die("skip, resource dont load\n");}
10if (!is_array(enchant_broker_list_dicts(enchant_broker_init()))) {die("skip, no dictionary installed on this machine! \n");}
11
12$tag = 'en_US';
13$r = enchant_broker_init();
14if (!enchant_broker_dict_exists($r, $tag))
15    die('skip, no dictionary for ' . $tag . ' tag');
16?>
17--FILE--
18<?php
19
20$tag = 'en_US';
21$r = enchant_broker_init();
22
23$d = enchant_broker_request_dict($r, $tag);
24enchant_dict_quick_check($d, 'soong', $suggs);
25
26echo "Elements: " . count($suggs) . "\n";
27echo "Done\n";
28?>
29--EXPECTF--
30Elements: %d
31Done
32