php-src/ext/imap/tests
Christoph M. Becker 818eb8f611 Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4:
  Fix #80226: imap_sort() leaks sortpgm memory
2020-10-12 23:21:56 +02:00
..
bug31142_1.phpt
bug31142_2.phpt
bug32589.phpt
bug35669.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug40854.phpt
bug44098.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
bug45705_1.phpt Run tidy 2020-09-18 14:28:32 +02:00
bug45705_2.phpt Run tidy 2020-09-18 14:28:32 +02:00
bug46918.phpt
bug53377.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug63126.phpt Fixed tests 2019-10-02 01:09:37 +03:00
bug75774.phpt Set-up IMAP in Azure 2020-09-18 23:02:01 +02:00
bug77020.phpt Fix too strict imap test expectations 2020-10-08 12:06:54 +02:00
bug77153.phpt Run tidy 2020-09-18 14:28:32 +02:00
bug80213.phpt Fix #80213: imap_mail_compose() segfaults on certain $bodies 2020-10-10 19:17:13 +02:00
bug80215.phpt Fix #80215: imap_mail_compose() may modify by-val parameters 2020-10-10 23:25:06 +02:00
bug80216.phpt Fix #80216: imap_mail_compose() does not validate types/encodings 2020-10-12 16:27:49 +02:00
bug80223.phpt Fix #80223: imap_mail_compose() leaks envelope on malformed bodies 2020-10-12 15:08:30 +02:00
bug80226.phpt Fix #80226: imap_sort() leaks sortpgm memory 2020-10-12 23:16:31 +02:00
clean.inc Reindent phpt files 2020-02-03 22:52:20 +01:00
CONFLICTS Fix IMAP tests 2020-09-18 23:02:01 +02:00
dovecot.conf Set-up IMAP in Azure 2020-09-18 23:02:01 +02:00
dovecotpass Set-up IMAP in Azure 2020-09-18 23:02:01 +02:00
imap_8bit_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_append_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_base64_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_binary_basic.phpt Replace EXPECTF when possible 2020-06-29 21:31:44 +02:00
imap_body.phpt Update ext/imap parameter names 2020-10-08 18:02:09 +02:00
imap_body_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_bodystruct_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_clearflag_full_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_close_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_close_variation4.phpt Update ext/imap parameter names 2020-10-08 18:02:09 +02:00
imap_createmailbox_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_errors_basic.phpt Drop some connection retries in IMAP test 2020-09-21 14:49:53 +01:00
imap_fetch_overview_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_fetch_overview_variation3.phpt Update ext/imap parameter names 2020-10-08 18:02:09 +02:00
imap_fetch_overview_variation5.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_fetch_overview_variation6.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_fetchbody_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_fetchbody_variation4.phpt Update ext/imap parameter names 2020-10-08 18:02:09 +02:00
imap_fetchbody_variation6.phpt Update ext/imap parameter names 2020-10-08 18:02:09 +02:00
imap_fetchheader_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_fetchheader_variation3.phpt Update ext/imap parameter names 2020-10-08 18:02:09 +02:00
imap_fetchheader_variation5.phpt Update ext/imap parameter names 2020-10-08 18:02:09 +02:00
imap_fetchstructure_basic.phpt Update ext/imap parameter names 2020-10-08 18:02:09 +02:00
imap_gc_error.phpt Promote warnings to Error in IMAP extension 2020-09-23 13:54:54 +01:00
imap_getsubscribed_basic.phpt Skip IMAP test which chokes on ASAN build 2020-09-22 14:43:31 +01:00
imap_headerinfo_basic.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
imap_include.inc Set-up IMAP in Azure 2020-09-18 23:02:01 +02:00
imap_list_basic.phpt Fix IMAP tests 2020-09-18 23:02:01 +02:00
imap_lsub_basic.phpt Skip imap_lsub_basic.phpt under asan 2020-09-24 17:03:53 +02:00
imap_mail_copy_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_mail_move_basic.phpt Remove unnecessary PHPDoc-alike blocks from tests 2020-06-24 13:13:44 +02:00
imap_mutf7_to_utf8.phpt Replace EXPECTF when possible 2020-06-29 21:31:44 +02:00
imap_open_error.phpt Update ext/imap parameter names 2020-10-08 18:02:09 +02:00
imap_renamemailbox_basic.phpt Fix IMAP tests 2020-09-18 23:02:01 +02:00
imap_rfc822_parse_headers_basic.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
imap_savebody_basic.phpt Fix IMAP tests 2020-09-18 23:02:01 +02:00
imap_timeout_basic.phpt Fix IMAP tests 2020-09-18 23:02:01 +02:00
imap_undelete_basic.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
imap_utf8.phpt Fixed tests 2019-10-02 01:09:37 +03:00
imap_utf8_to_mutf7_basic.phpt Replace EXPECTF when possible 2020-06-29 21:31:44 +02:00
README.md Update README for how to setup IMAP tests 2020-09-20 22:20:34 +01:00
setup.sh Set-up IMAP in Azure 2020-09-18 23:02:01 +02:00
skipif.inc Set-up IMAP in Azure 2020-09-18 23:02:01 +02:00

The imap extension tests

Many of the tests in this directory require a mail server to be running, if there is no mail server the test will skip and warn, see skipif.inc for details.

To make the tests run parameters in the skipif.inc and imap_include.inc files will need to be changed to match the local mailserver configuration.

The tests have been checked using dovecot (on Linux 32 and 64 bit systems) and hMailServer on Windows. The tests are intended to be mailserver agnostic.

Set-up tests on Ubuntu (checked on Ubuntu 18.04 (Bionic))

The necessary packages can be installed using the following command; apt-get install libc-client-dev libkrb5-dev dovecot-core dovecot-pop3d dovecot-imapd

The build of PHP will need to be compiled with the following flags:

--with-imap --with-kerberos --with-imap-ssl

Then run the set-up script ext/imap/tests/setup.sh which will add the vmail group and user which is used by Dovecot for the mailbox. It will also copy the ext/imap/tests/dovecot.conf and ext/imap/tests/dovecotpass to the correct location for Dovecot and restarts it for the new configuration to be enabled.