Annotation of embedaddon/php/ext/standard/tests/mail/mail_skipif.inc, revision 1.1.1.1
1.1 misho 1: <?php
2: extension_loaded('imap') or die('skip imap extension not available in this build');
3:
4: // Change these to make tests run successfully
5: $mailbox = '{localhost}';
6: $username = 'webmaster@example.com';
7: $password = 'p4ssw0rd';
8: $options = OP_HALFOPEN; // this should be enough to verify server present
9: $retries = 0; // dont retry connect on failure
10:
11: $mbox = imap_open($mailbox, $username, $password, $options, $retries);
12: if (!$mbox) {
13: die("skip could not connect to mailbox $mailbox");
14: }
15: imap_close($mbox);
16: ?>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>