diff --git a/ext/pspell/tests/01pspell_basic.phpt b/ext/pspell/tests/001.phpt similarity index 92% rename from ext/pspell/tests/01pspell_basic.phpt rename to ext/pspell/tests/001.phpt index 1cfb6844859..0a22352eefe 100644 --- a/ext/pspell/tests/01pspell_basic.phpt +++ b/ext/pspell/tests/001.phpt @@ -2,10 +2,10 @@ pspell basic tests (warning: may fail with pspell/aspell < GNU Aspell 0.50.3) --SKIPIF-- --FILE-- +--FILE-- + +--EXPECTF-- +Warning: Wrong parameter count for pspell_check() in %s002.php on line 5 +NULL +bool(false) +bool(false) +bool(true) +bool(true) + +Notice: Object of class stdClass could not be converted to int in %s002.php on line 12 + +Warning: pspell_clear_session(): 1 is not a PSPELL result index in %s002.php on line 12 +bool(false) +bool(true) +bool(false) diff --git a/ext/pspell/tests/003.phpt b/ext/pspell/tests/003.phpt new file mode 100644 index 00000000000..7af81683f96 --- /dev/null +++ b/ext/pspell/tests/003.phpt @@ -0,0 +1,39 @@ +--TEST-- +pspell_config_ignore +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +bool(false) + +Warning: pspell_new_config(): PSPELL couldn't open the dictionary. reason: The encoding "b0rked" is not known. This could also mean that the file "%sb0rked.dat" could not be opened for reading or does not exist. in %s003.php on line 9 + +Warning: pspell_check(): 0 is not a PSPELL result index in %s003.php on line 10 +bool(false) +--- +bool(true) +bool(true) +bool(true) diff --git a/ext/pspell/tests/004.phpt b/ext/pspell/tests/004.phpt new file mode 100644 index 00000000000..80602bce390 --- /dev/null +++ b/ext/pspell/tests/004.phpt @@ -0,0 +1,35 @@ +--TEST-- +pspell configs +--SKIPIF-- + +--FILE-- + +--EXPECT-- +bool(true) +bool(true) +bool(false) +--- +bool(true) +bool(true) +bool(true) diff --git a/ext/pspell/tests/005.phpt b/ext/pspell/tests/005.phpt new file mode 100644 index 00000000000..8aeb206031b --- /dev/null +++ b/ext/pspell/tests/005.phpt @@ -0,0 +1,46 @@ +--TEST-- +pspell configs +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: pspell_new_personal(): PSPELL couldn't open the dictionary. reason: The file "%s005.php" is not in the proper format. in %s005.php on line 5 +bool(false) +bool(true) +-- +bool(true) +bool(false) +bool(true) +bool(true) +-- +bool(true) +bool(true) diff --git a/ext/pspell/tests/wordlist.txt b/ext/pspell/tests/wordlist.txt new file mode 100644 index 00000000000..e9d8da7ca37 --- /dev/null +++ b/ext/pspell/tests/wordlist.txt @@ -0,0 +1,5 @@ +personal_ws-1.1 en 4 +dfnvnsafksfksf +fg +iufrsn +jsksjfsjf