Annotation of embedaddon/php/ext/pspell/tests/004.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: pspell configs
3: --SKIPIF--
4: <?php
5: if (!extension_loaded('pspell')) die('skip');
6: if (!@pspell_new('en')) die('skip English dictionary is not available');
7: ?>
8: --FILE--
9: <?php
10:
11: $cfg = pspell_config_create('en', 'british', '', 'iso8859-1');
12: var_dump(pspell_config_mode($cfg, PSPELL_BAD_SPELLERS));
13:
14: var_dump(pspell_config_runtogether($cfg, false));
15: $p = pspell_new_config($cfg);
16: var_dump(pspell_check($p, 'theoasis'));
17:
18: echo "---\n";
19:
20: // now it should pass
21: var_dump(pspell_config_runtogether($cfg, true));
22: $p = pspell_new_config($cfg);
23: var_dump(pspell_check($p, 'theoasis'));
24:
25: var_dump(pspell_config_runtogether($cfg, NULL))
26:
27: ?>
28: --EXPECT--
29: bool(true)
30: bool(true)
31: bool(false)
32: ---
33: bool(true)
34: bool(true)
35: bool(true)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>