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