diff options
Diffstat (limited to 'ext/imap/tests/bug63126.phpt')
-rw-r--r-- | ext/imap/tests/bug63126.phpt | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ext/imap/tests/bug63126.phpt b/ext/imap/tests/bug63126.phpt index 8eea34cf1d..8297b509ae 100644 --- a/ext/imap/tests/bug63126.phpt +++ b/ext/imap/tests/bug63126.phpt @@ -4,11 +4,11 @@ imap_open() DISABLE_AUTHENTICATOR ignores array param <?php extension_loaded('imap') or die('skip imap extension not available in this build'); -require_once(__DIR__.'/imap_include.inc'); +require_once(__DIR__. '/setup/imap_include.inc'); -$in = @imap_open($default_mailbox, $username, $password, OP_HALFOPEN, 1); +$in = @imap_open(IMAP_SERVER_DEBUG, IMAP_MAILBOX_USERNAME, IMAP_MAILBOX_PASSWORD, OP_HALFOPEN, 1); if (!$in) { - die("skip could not connect to mailbox $default_mailbox"); + die("skip could not connect to mailbox " . IMAP_SERVER_DEBUG); } $kerberos = false; if (is_array($errors = imap_errors())) { @@ -22,16 +22,19 @@ if (!$kerberos) { die("skip need a GSSAPI/Kerberos aware server"); } ?> +--CONFLICTS-- +defaultmailbox --FILE-- <?php +// TODO Test Kerberos on CI $tests = array( 'Array' => array('DISABLE_AUTHENTICATOR' => array('GSSAPI','NTLM')), 'String' => array('DISABLE_AUTHENTICATOR' => 'GSSAPI'), ); -require_once(__DIR__.'/imap_include.inc'); +require_once(__DIR__. '/setup/imap_include.inc'); foreach ($tests as $name => $testparams) { echo "Test for $name\n"; - $in = imap_open($default_mailbox, $username, $password, OP_HALFOPEN, 1, $testparams); + $in = imap_open(IMAP_SERVER_DEBUG, IMAP_MAILBOX_USERNAME, IMAP_MAILBOX_PASSWORD, OP_HALFOPEN, 1, $testparams); if ($in) { if (is_array($errors = imap_errors())) { foreach ($errors as $err) { |