mirror of
https://github.com/php/php-src.git
synced 2025-01-22 11:44:09 +08:00
allow tests to pass when a random username is used.
patch by Olivier Doucet
This commit is contained in:
parent
fb86d5b462
commit
24090104ef
@ -27,6 +27,9 @@ echo "Msg Count in new mailbox: ". $check->Nmsgs . "\n";
|
||||
// show body for msg 1
|
||||
var_dump(imap_body($imap_stream, 1));
|
||||
|
||||
//Access via FT_UID
|
||||
var_dump(imap_body($imap_stream, 1, FT_UID));
|
||||
|
||||
imap_close($imap_stream);
|
||||
?>
|
||||
===Done===
|
||||
@ -40,5 +43,6 @@ Create a new mailbox for test
|
||||
Create a temporary mailbox and add 1 msgs
|
||||
.. mailbox '%s' created
|
||||
Msg Count in new mailbox: 1
|
||||
string(%d) "1: this is a test message, please ignore%a"
|
||||
===Done===
|
||||
%unicode|string%(%d) "1: this is a test message, please ignore%a"
|
||||
%unicode|string%(%d) "1: this is a test message, please ignore%a"
|
||||
===Done===
|
||||
|
@ -77,7 +77,7 @@ require_once('clean.inc');
|
||||
*** Testing string imap_bodystruct : basic functionality ***
|
||||
Create a new mailbox for test and add a multipart msgs
|
||||
Create a temporary mailbox and add 1 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
Get and validate structure of body part 1
|
||||
ifsubtype is 0 or 1
|
||||
|
@ -56,7 +56,7 @@ require_once('clean.inc');
|
||||
*** Testing imap_clearflag_full() : basic functionality ***
|
||||
Create a new mailbox for test
|
||||
Create a temporary mailbox and add 10 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.%s' created
|
||||
.. mailbox '{%s}%s' created
|
||||
Initial msg count in new_mailbox : 10
|
||||
Set some flags
|
||||
bool(true)
|
||||
|
@ -118,7 +118,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_close() : usage variations ***
|
||||
Create a temporary mailbox and add 3 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
-- Iteration 1 --
|
||||
bool(true)
|
||||
|
@ -66,7 +66,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_close() : usage variations ***
|
||||
Create a temporary mailbox and add 3 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
-- Iteration 1 --
|
||||
bool(true)
|
||||
|
@ -77,7 +77,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_fetch_overview() : basic functionality ***
|
||||
Create a temporary mailbox and add 2 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
-- All possible arguments --
|
||||
|
||||
|
@ -42,7 +42,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
|
||||
-- Testing imap_fetch_overview() function with more than expected no. of arguments --
|
||||
Create a temporary mailbox and add 2 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
Warning: imap_fetch_overview() expects at most 3 parameters, 4 given in %s on line %d
|
||||
NULL
|
||||
|
@ -136,7 +136,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_fetch_overview() : usage variations ***
|
||||
Create a temporary mailbox and add 1 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
-- Testing with second argument value: int(0)
|
||||
Sequence out of range
|
||||
|
@ -56,7 +56,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_fetch_overview() : usage variations ***
|
||||
Create a temporary mailbox and add 1 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
Testing with option value:%string|unicode%(1) "1"
|
||||
imap_fetch_overview() returns an object
|
||||
|
@ -67,7 +67,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_fetch_overview() : usage variations ***
|
||||
Create a temporary mailbox and add 3 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
-- $msg_no is 0 --
|
||||
Sequence out of range
|
||||
|
@ -110,7 +110,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_fetch_overview() : usage variations ***
|
||||
Create a temporary mailbox and add 0 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
--> Object #1
|
||||
size is %d
|
||||
|
@ -64,7 +64,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_fetchbody() : basic functionality ***
|
||||
Create a temporary mailbox and add 1 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
-- All possible arguments --
|
||||
-- Option is FT_UID --
|
||||
|
@ -45,7 +45,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
|
||||
-- Testing imap_fetchbody() function with more than expected no. of arguments --
|
||||
Create a temporary mailbox and add 1 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
Warning: imap_fetchbody() expects at most 4 parameters, 5 given in %s on line %d
|
||||
NULL
|
||||
|
@ -103,7 +103,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_fetchbody() : usage variations ***
|
||||
Create a temporary mailbox and add 1 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
-- Iteration 1 --
|
||||
|
||||
|
@ -53,7 +53,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_fetchbody() : usage variations ***
|
||||
Create a temporary mailbox and add 1 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
-- Iteration 1 --
|
||||
FT_UID valid
|
||||
|
@ -44,7 +44,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_fetchbody() : usage variations ***
|
||||
Create a temporary mailbox and add 3 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
-- $msg_no is 0 --
|
||||
|
||||
|
@ -118,7 +118,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_fetchheader() : usage variations ***
|
||||
Create a temporary mailbox and add 1 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
-- Iteration 1 --
|
||||
|
||||
@ -128,7 +128,7 @@ bool(false)
|
||||
-- Iteration 2 --
|
||||
%unicode|string%(%d) "From: foo@anywhere.com
|
||||
Subject: Test msg 1
|
||||
To: webmaster@something.com
|
||||
To: %s
|
||||
MIME-Version: 1.0
|
||||
Content-Type: MULTIPART/mixed; BOUNDARY="%s"
|
||||
|
||||
@ -182,7 +182,7 @@ bool(false)
|
||||
-- Iteration 12 --
|
||||
%unicode|string%(%d) "From: foo@anywhere.com
|
||||
Subject: Test msg 1
|
||||
To: webmaster@something.com
|
||||
To: %s
|
||||
MIME-Version: 1.0
|
||||
Content-Type: MULTIPART/mixed; BOUNDARY="%s"
|
||||
|
||||
@ -196,7 +196,7 @@ bool(false)
|
||||
-- Iteration 14 --
|
||||
%unicode|string%(%d) "From: foo@anywhere.com
|
||||
Subject: Test msg 1
|
||||
To: webmaster@something.com
|
||||
To: %s
|
||||
MIME-Version: 1.0
|
||||
Content-Type: MULTIPART/mixed; BOUNDARY="%s"
|
||||
|
||||
|
@ -51,7 +51,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_fetchheader() : usage variations ***
|
||||
Create a temporary mailbox and add 1 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
-- Iteration 1 --
|
||||
FT_UID valid
|
||||
|
@ -45,7 +45,7 @@ require_once(dirname(__FILE__).'/clean.inc');
|
||||
--EXPECTF--
|
||||
*** Testing imap_fetchheader() : usage variations ***
|
||||
Create a temporary mailbox and add 3 msgs
|
||||
.. mailbox '{localhost/norsh}INBOX.phpttest' created
|
||||
.. mailbox '{%s}%s' created
|
||||
|
||||
-- $msg_no is 0 --
|
||||
|
||||
@ -64,7 +64,7 @@ bool(false)
|
||||
Notice: A non well formed numeric value encountered in %s on line %d
|
||||
%unicode|string%(%d) "From: foo@anywhere.com
|
||||
Subject: Test msg 1
|
||||
To: webmaster@something.com
|
||||
To: %s
|
||||
MIME-Version: 1.0
|
||||
Content-Type: MULTIPART/mixed; BOUNDARY="%s"
|
||||
|
||||
@ -75,7 +75,7 @@ Content-Type: MULTIPART/mixed; BOUNDARY="%s"
|
||||
Notice: A non well formed numeric value encountered in %s on line %d
|
||||
%unicode|string%(%d) "From: foo@anywhere.com
|
||||
Subject: Test msg 1
|
||||
To: webmaster@something.com
|
||||
To: %s
|
||||
MIME-Version: 1.0
|
||||
Content-Type: MULTIPART/mixed; BOUNDARY="%s"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user