php-src/ext/imap/tests
Hannes Magnusson ce6f5e32ba Update skipif
2011-09-07 10:39:55 +00:00
..
bug31142_1.phpt
bug31142_2.phpt
bug32589.phpt
bug35669.phpt
bug40854.phpt
bug44098.phpt - Fixed #44098, imap_utf8() returns only capital letters 2010-02-07 13:06:54 +00:00
bug45705_1.phpt
bug45705_2.phpt
bug46918.phpt
bug53377.phpt Fix bug #53377 (imap_mime_header_decode() doesn't ignore \t during long MIME 2010-11-23 10:34:44 +00:00
clean.inc
imap_8bit_basic.phpt
imap_alerts_error.phpt
imap_append_basic.phpt
imap_base64_basic.phpt
imap_binary_basic.phpt
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
imap_close_error.phpt
imap_close_variation1.phpt
imap_close_variation2.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_close_variation3.phpt
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
imap_errors_basic.phpt
imap_expunge_error.phpt
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
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
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
imap_fetchbody_variation2.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +00:00
imap_fetchbody_variation3.phpt
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
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
imap_fetchheader_error.phpt
imap_fetchheader_variation1.phpt
imap_fetchheader_variation2.phpt allow tests to pass when a random username is used. 2009-09-22 12:30:21 +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
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 Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00: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
imap_include.inc - #35638, add udate to imap_fetch_overview 2010-04-14 09:45:37 +00: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
imap_num_msg_error.phpt
imap_num_recent_error.phpt
imap_open_error.phpt Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +00:00
imap_ping_error.phpt
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 Adding IMAP tests (PHP 5.3) 2009-11-23 21:48:57 +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
README
skipif.inc

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
}