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