xref: /PHP-5.4/ext/pspell/tests/004.phpt (revision e8a3530d)
1--TEST--
2pspell configs
3--SKIPIF--
4<?php
5if (!extension_loaded('pspell')) die('skip');
6if (!@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');
12var_dump(pspell_config_mode($cfg, PSPELL_BAD_SPELLERS));
13
14var_dump(pspell_config_runtogether($cfg, false));
15$p = pspell_new_config($cfg);
16var_dump(pspell_check($p, 'theoasis'));
17
18echo "---\n";
19
20// now it should pass
21var_dump(pspell_config_runtogether($cfg, true));
22$p = pspell_new_config($cfg);
23var_dump(pspell_check($p, 'theoasis'));
24
25var_dump(pspell_config_runtogether($cfg, NULL))
26
27?>
28--EXPECT--
29bool(true)
30bool(true)
31bool(false)
32---
33bool(true)
34bool(true)
35bool(true)
36