php-src/ext/imap/tests
Stanislav Malyshev 14d6de97c5 add imap
2015-01-28 10:15:11 -08:00
..
bug31142_1.phpt
bug31142_2.phpt
bug32589.phpt MFH: Fixed bug #32589 (possible crash inside imap_mail_compose() function). 2005-08-30 22:03:29 +00:00
bug35669.phpt Fixed bug #35669 (imap_mail_compose() crashes with 2006-01-05 00:47:16 +00:00
bug40854.phpt Fixed bug #40854 (imap_mail_compose() creates an invalid terminator for 2007-03-19 22:56:57 +00:00
bug44098.phpt - Fixed #44098, imap_utf8() returns only capital letters 2010-02-07 13:06:54 +00:00
bug45705_1.phpt MFH:- Fixed bug #45705 (rfc822_parse_adrlist() modifies passed address parameter) 2008-08-04 21:14:28 +00:00
bug45705_2.phpt MFH:- Fixed bug #45705 (rfc822_parse_adrlist() modifies passed address parameter) 2008-08-04 21:14:28 +00:00
bug46918.phpt fix test 2009-07-26 19:51:24 +00:00
bug53377.phpt MFH: fixed bug #53377 (imap_mime_header_decode() doesn't ignore \t during long 2010-12-13 08:38:01 +00:00
bug63126.phpt add unit test for bug 63126 2012-11-24 17:30:48 +01:00
clean.inc Committing include files required for tests. Tests and bug reports to follow. 2008-11-28 17:40:14 +00:00
imap_8bit_basic.phpt Miscellaneous tests for ext/imap 2008-12-17 15:07:30 +00:00
imap_alerts_error.phpt Miscellaneous tests for ext/imap 2008-12-17 15:07:30 +00:00
imap_append_basic.phpt Miscellaneous tests for ext/imap 2008-12-17 15:07:30 +00:00
imap_base64_basic.phpt Miscellaneous tests for ext/imap 2008-12-17 15:07:30 +00:00
imap_binary_basic.phpt Miscellaneous tests for ext/imap 2008-12-17 15:07:30 +00:00
imap_body_basic.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_body.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_bodystruct_basic.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_clearflag_full_basic.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_close_basic.phpt Miscellaneous tests for ext/imap 2008-12-17 15:07:30 +00:00
imap_close_error.phpt Miscellaneous tests for ext/imap 2008-12-17 15:07:30 +00:00
imap_close_variation1.phpt Use "float" and "integer" in typehint and zpp errors 2014-12-21 13:23:02 +00:00
imap_close_variation2.phpt Use "float" and "integer" in typehint and zpp errors 2014-12-21 13:23:02 +00:00
imap_close_variation3.phpt Miscellaneous tests for ext/imap 2008-12-17 15:07:30 +00:00
imap_close_variation4.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_createmailbox_basic.phpt Miscellaneous tests for ext/imap 2008-12-17 15:07:30 +00:00
imap_errors_basic.phpt Fixed the common misspelling of the word occurred (occured -> occurred) 2012-06-30 16:54:03 -07:00
imap_expunge_error.phpt - New tests (testfest DutchUG) 2009-05-16 21:13:43 +00:00
imap_fetch_overview_basic.phpt - #35638, add udate to imap_fetch_overview 2010-04-14 09:45:37 +00:00
imap_fetch_overview_error.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_fetch_overview_variation1.phpt Use "float" and "integer" in typehint and zpp errors 2014-12-21 13:23:02 +00:00
imap_fetch_overview_variation2.phpt - #35638, add udate to imap_fetch_overview 2010-04-14 09:45:37 +00:00
imap_fetch_overview_variation3.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_fetch_overview_variation4.phpt tests for imap_fetch_overview 2008-12-08 19:12:39 +00:00
imap_fetch_overview_variation5.phpt - #35638, add udate to imap_fetch_overview 2010-04-14 09:45:37 +00:00
imap_fetch_overview_variation6.phpt - #35638, add udate to imap_fetch_overview 2010-04-14 09:45:37 +00:00
imap_fetchbody_basic.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_fetchbody_error.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_fetchbody_variation1.phpt Use "float" and "integer" in typehint and zpp errors 2014-12-21 13:23:02 +00:00
imap_fetchbody_variation2.phpt Use "float" and "integer" in typehint and zpp errors 2014-12-21 13:23:02 +00:00
imap_fetchbody_variation3.phpt Miscellaneous tests for ext/imap 2008-12-17 15:07:30 +00:00
imap_fetchbody_variation4.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_fetchbody_variation5.phpt Miscellaneous tests for ext/imap 2008-12-17 15:07:30 +00:00
imap_fetchbody_variation6.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_fetchheader_basic.phpt IMPA fetchheader tests 2009-01-23 15:31:35 +00:00
imap_fetchheader_error.phpt IMPA fetchheader tests 2009-01-23 15:31:35 +00:00
imap_fetchheader_variation1.phpt Use "float" and "integer" in typehint and zpp errors 2014-12-21 13:23:02 +00:00
imap_fetchheader_variation2.phpt Use "float" and "integer" in typehint and zpp errors 2014-12-21 13:23:02 +00:00
imap_fetchheader_variation3.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_fetchheader_variation4.phpt IMPA fetchheader tests 2009-01-23 15:31:35 +00:00
imap_fetchheader_variation5.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_fetchstructure_basic.phpt add imap 2015-01-28 10:15:11 -08:00
imap_gc_error.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_getsubscribed_basic.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_headerinfo_basic.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_headerinfo_error.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_headers.phpt - New tests (testfest DutchUG) 2009-05-16 21:13:43 +00:00
imap_include.inc add imap 2015-01-28 10:15:11 -08:00
imap_list_basic.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_lsub_basic.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_mail_copy_basic.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_mail_copy.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_mail_move_basic.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_mail_move.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_mutf7_to_utf8.phpt - Fixed tests 2009-05-05 18:19:16 +00:00
imap_num_msg_error.phpt - New tests (testfest DutchUG) 2009-05-16 21:13:43 +00:00
imap_num_recent_error.phpt - New tests (testfest DutchUG) 2009-05-16 21:13:43 +00:00
imap_open_error.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_ping_error.phpt - New tests (testfest DutchUG) 2009-05-16 21:13:43 +00:00
imap_renamemailbox_basic.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_rfc822_parse_headers_basic.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_savebody_basic.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_timeout_basic.phpt Use "float" and "integer" in typehint and zpp errors 2014-12-21 13:23:02 +00:00
imap_undelete_basic.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_undelete_error.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_utf8_to_mutf7_basic.phpt Update skipif 2011-09-07 10:39:55 +00:00
imap_utf8.phpt - New parameter parsing API 2008-06-23 03:17:42 +00:00
README README for ext/imap tests 2008-12-17 15:36:06 +00:00
skipif.inc - Supressing error message for SKIPIF check works as expected 2009-02-15 16:03:39 +00:00

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 file 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.

The tests can be run without modification with a fairly minimal dovecot installation. For information, the dovecot.conf file used in running the tests is given below (after -----). The dovecot password file (dovecotpass) requires a password for one user, webmaster@something.com. It's also necessary to set up one additional user ID (vmail) to own the mail directory.

--------------------------------------------------
protocols = imap imaps

listen = *

ssl_disable = yes

disable_plaintext_auth=yes

## Mailbox locations and namespaces

mail_location = maildir:/home/vmail/mail/%d/%n/Maildir

auth_verbose = yes

auth_debug = yes

auth default {

  mechanisms = login

  passdb passwd-file {
    args = /etc/dovecot/dovecotpass
  }

  userdb static {
    args = uid=11459 gid=1002 home=/home/vmail/dovecot/mail/%d/%n
  }

  user = root
}