diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-01-05 16:46:27 +0100 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-01-09 12:04:28 +0100 |
commit | 64633044c517b65e74e95749e3918c1468ab0f82 (patch) | |
tree | 285710e3db2b631b1726878c88d1d9ba85edff8b /.gitignore | |
parent | 0a9bdd6e7b6545b830f2bf1c4795a74c2dc30730 (diff) | |
download | php-git-64633044c517b65e74e95749e3918c1468ab0f82.tar.gz |
Unify mail related tests for *nix and Windows
Currently mail related tests are split for *nix and Windows (if there
are even Windows versions). The basic difference is that the *nix
variants set the INI directive sendmail_path to just write the email to
disk, while the Windows tests use ext/imap. The latter tests are way
more verbose, and such duplicated tests are generally a pain point.
Furthermore, the Windows tests are much slower, and could not be run
without ext/imap being available.
We therefore introduce a small fakemail application, which basically
works like `tee <path> >/dev/null`, and which will be shipped with the
Windows tests packs. fakemail.exe would also need to be added to the
PHP binary SDK, so these tests could be run during developments.
To cater to the remaining differences, we also introduce support for
`{MAIL:<path>}` placeholders in the INI sections to run-tests.php. How
to use this can be seen in mail_basic.phpt, which is currently the only
modified test case, because these tests are yet supposed to fail on
Windows, due to the missing fakemail.exe in the PHP SDK.
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 587f4abc42..39f001a67e 100644 --- a/.gitignore +++ b/.gitignore @@ -213,6 +213,8 @@ php /main/config.w32.h /win32/build/deplister.exe /win32/build/deplister.obj +/win32/build/fakemail.exe +/win32/build/fakemail.obj /win32/*.aps /win32/*.positions /win32/*.suo |