diff options
Diffstat (limited to 'ext/imap/tests')
32 files changed, 0 insertions, 64 deletions
diff --git a/ext/imap/tests/bug75774.phpt b/ext/imap/tests/bug75774.phpt index 0d2aeadf01..b47ef2e415 100644 --- a/ext/imap/tests/bug75774.phpt +++ b/ext/imap/tests/bug75774.phpt @@ -20,9 +20,7 @@ fclose($var1); unlink($fn); ?> -==DONE== --EXPECTF-- Warning: imap_append(): internal date not correctly formatted in %s on line %d Exception: imap_append(): supplied resource is not a valid imap resource -==DONE== diff --git a/ext/imap/tests/bug77020.phpt b/ext/imap/tests/bug77020.phpt index 357b75333a..582b132ad8 100644 --- a/ext/imap/tests/bug77020.phpt +++ b/ext/imap/tests/bug77020.phpt @@ -8,8 +8,6 @@ if (!extension_loaded('imap')) die('skip imap extension not available'); <?php imap_mail('1', 1, NULL); ?> -===DONE=== --EXPECTF-- Warning: imap_mail(): No message string in mail command in %s on line %d %A -===DONE=== diff --git a/ext/imap/tests/imap_8bit_basic.phpt b/ext/imap/tests/imap_8bit_basic.phpt index 799889bb3d..6e81e31d3e 100644 --- a/ext/imap/tests/imap_8bit_basic.phpt +++ b/ext/imap/tests/imap_8bit_basic.phpt @@ -21,7 +21,6 @@ var_dump(imap_8bit("String with tab at end \t")); var_dump(imap_8bit("\x00\x01\x02\x03\x04\xfe\xff\x0a\x0d")); ?> -===Done=== --EXPECT-- *** Testing imap_8bit() : basic functionality *** string(28) "String with CRLF at end=20 @@ -30,4 +29,3 @@ string(25) "String with space at end " string(33) "String with tabs =09=09 in middle" string(26) "String with tab at end =09" string(27) "=00=01=02=03=04=FE=FF=0A=0D" -===Done=== diff --git a/ext/imap/tests/imap_alerts_error.phpt b/ext/imap/tests/imap_alerts_error.phpt index 546d193c8f..620d6d1e80 100644 --- a/ext/imap/tests/imap_alerts_error.phpt +++ b/ext/imap/tests/imap_alerts_error.phpt @@ -20,7 +20,6 @@ $extra_arg = 10; var_dump( imap_alerts($extra_arg) ); ?> -===DONE=== --EXPECTF-- *** Testing imap_alerts() : error conditions *** @@ -28,4 +27,3 @@ var_dump( imap_alerts($extra_arg) ); Warning: imap_alerts() expects exactly 0 parameters, 1 given in %s on line %d NULL -===DONE=== diff --git a/ext/imap/tests/imap_append_basic.phpt b/ext/imap/tests/imap_append_basic.phpt index 500d3afb69..499a05cc4d 100644 --- a/ext/imap/tests/imap_append_basic.phpt +++ b/ext/imap/tests/imap_append_basic.phpt @@ -47,7 +47,6 @@ var_dump(imap_headers($imap_stream)); imap_close($imap_stream); ?> -===Done=== --CLEAN-- <?php require_once('clean.inc'); @@ -68,4 +67,3 @@ array(2) { [1]=> string(%d) "%w%s 2)%s webmaster@something. Another test (%d chars)" } -===Done=== diff --git a/ext/imap/tests/imap_base64_basic.phpt b/ext/imap/tests/imap_base64_basic.phpt index 3557e9f87e..a01545ceba 100644 --- a/ext/imap/tests/imap_base64_basic.phpt +++ b/ext/imap/tests/imap_base64_basic.phpt @@ -38,10 +38,8 @@ if (imap_base64($base64) == $hex) { } ?> -===Done=== --EXPECT-- *** Testing imap_base64() : basic functionality *** TEST PASSED TEST PASSED TEST PASSED -===Done=== diff --git a/ext/imap/tests/imap_binary_basic.phpt b/ext/imap/tests/imap_binary_basic.phpt index 04f85386bc..8809e46d94 100644 --- a/ext/imap/tests/imap_binary_basic.phpt +++ b/ext/imap/tests/imap_binary_basic.phpt @@ -34,7 +34,6 @@ $base64 = imap_binary($hex); var_dump(bin2hex($base64)); ?> -===Done=== --EXPECTF-- *** Testing imap_binary() : basic functionality *** Encode as short string @@ -45,4 +44,3 @@ Encode a string with special characters string(60) "5879737450587464573130374f30422b497a3876506934384c413d3d0d0a" Encode some hexadecimal data string(144) "65444177584867774d5678344d444a636544417a584867774e4678344d445663654441325848684751567834526b4a6365455a4458486847524678340d0a526b566365455a470d0a" -===Done=== diff --git a/ext/imap/tests/imap_body_basic.phpt b/ext/imap/tests/imap_body_basic.phpt index bc9f789c6a..b3dcfa105e 100644 --- a/ext/imap/tests/imap_body_basic.phpt +++ b/ext/imap/tests/imap_body_basic.phpt @@ -32,7 +32,6 @@ var_dump(imap_body($imap_stream, 1, FT_UID)); imap_close($imap_stream); ?> -===Done=== --CLEAN-- <?php require_once('clean.inc'); @@ -45,4 +44,3 @@ Create a temporary mailbox and add 1 msgs Msg Count in new mailbox: 1 string(%d) "1: this is a test message, please ignore%a" string(%d) "1: this is a test message, please ignore%a" -===Done=== diff --git a/ext/imap/tests/imap_bodystruct_basic.phpt b/ext/imap/tests/imap_bodystruct_basic.phpt index 07b552de96..c278c4c2af 100644 --- a/ext/imap/tests/imap_bodystruct_basic.phpt +++ b/ext/imap/tests/imap_bodystruct_basic.phpt @@ -68,7 +68,6 @@ function isValid($param) return $result; } ?> -===Done=== --CLEAN-- <?php require_once('clean.inc'); @@ -90,4 +89,3 @@ parameters is an array Try to get part 4! bool(false) -===Done=== diff --git a/ext/imap/tests/imap_clearflag_full_basic.phpt b/ext/imap/tests/imap_clearflag_full_basic.phpt index 017ca1b71e..08416281ec 100644 --- a/ext/imap/tests/imap_clearflag_full_basic.phpt +++ b/ext/imap/tests/imap_clearflag_full_basic.phpt @@ -47,7 +47,6 @@ var_dump(imap_search($imap_stream, "DELETED")); imap_close($imap_stream); ?> -===Done=== --CLEAN-- <?php require_once('clean.inc'); @@ -124,4 +123,3 @@ array(3) { int(10) } bool(false) -===Done=== diff --git a/ext/imap/tests/imap_close_basic.phpt b/ext/imap/tests/imap_close_basic.phpt index 4a3f5d683f..0eb6d74f06 100644 --- a/ext/imap/tests/imap_close_basic.phpt +++ b/ext/imap/tests/imap_close_basic.phpt @@ -37,7 +37,6 @@ echo "There are now " . imap_num_msg($stream_id) . " msgs in mailbox '$mailbox'\ echo "\n-- Call to imap_close() with mandatory arguments --\n"; var_dump( imap_close($stream_id) ); ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -53,4 +52,3 @@ There are now 0 msgs in mailbox '%sINBOX.phpttest' -- Call to imap_close() with mandatory arguments -- bool(true) -===DONE=== diff --git a/ext/imap/tests/imap_close_error.phpt b/ext/imap/tests/imap_close_error.phpt index 8bb43e6a3b..ae370c7ef0 100644 --- a/ext/imap/tests/imap_close_error.phpt +++ b/ext/imap/tests/imap_close_error.phpt @@ -29,7 +29,6 @@ $options = CL_EXPUNGE; $extra_arg = 10; var_dump( imap_close($stream_id, $options, $extra_arg) ); ?> -===DONE=== --EXPECTF-- *** Testing imap_close() : error conditions *** @@ -42,4 +41,3 @@ NULL Warning: imap_close() expects at most 2 parameters, 3 given in %s on line %d NULL -===DONE=== diff --git a/ext/imap/tests/imap_close_variation4.phpt b/ext/imap/tests/imap_close_variation4.phpt index d71113ca85..9faa21c2d7 100644 --- a/ext/imap/tests/imap_close_variation4.phpt +++ b/ext/imap/tests/imap_close_variation4.phpt @@ -58,7 +58,6 @@ foreach($inputs as $input) { }; ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -90,4 +89,3 @@ bool(false) Warning: imap_close(): invalid value for the flags parameter in %s on line %d bool(false) -===DONE=== diff --git a/ext/imap/tests/imap_createmailbox_basic.phpt b/ext/imap/tests/imap_createmailbox_basic.phpt index 9d3cb83058..89e262ed84 100644 --- a/ext/imap/tests/imap_createmailbox_basic.phpt +++ b/ext/imap/tests/imap_createmailbox_basic.phpt @@ -54,7 +54,6 @@ if (imap_createmailbox($imap_stream, $newbox)) { imap_close($imap_stream); ?> -===Done=== --EXPECTF-- *** Testing imap_createmailbox() : basic functionality *** Newname will be 'phpnewbox' @@ -66,4 +65,3 @@ Unseen: 2 UIDnext: %d UIDvalidity: %d Mailbox 'phpnewbox' removed to restore initial state -===Done=== diff --git a/ext/imap/tests/imap_errors_basic.phpt b/ext/imap/tests/imap_errors_basic.phpt index 0a42e95e1f..cfd8379bec 100644 --- a/ext/imap/tests/imap_errors_basic.phpt +++ b/ext/imap/tests/imap_errors_basic.phpt @@ -27,7 +27,6 @@ $mbox = imap_open($default_mailbox, $username, $password, OP_READONLY, 1); echo "List any errors\n"; var_dump(imap_errors()); ?> -===Done=== --EXPECTF-- *** Testing imap_errors() : basic functionality *** Issue open with invalid password with normal default number of retries, i.e 3 @@ -52,4 +51,3 @@ array(%d) { [0]=> string(%d) "%a } -===Done=== diff --git a/ext/imap/tests/imap_fetch_overview_basic.phpt b/ext/imap/tests/imap_fetch_overview_basic.phpt index 03aa9ae0a5..236a1a0ced 100644 --- a/ext/imap/tests/imap_fetch_overview_basic.phpt +++ b/ext/imap/tests/imap_fetch_overview_basic.phpt @@ -44,7 +44,6 @@ displayOverviewFields($a[1]); imap_close($stream_id); ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -93,4 +92,3 @@ deleted is 0 seen is 0 draft is 0 udate is OK -===DONE=== diff --git a/ext/imap/tests/imap_fetch_overview_error.phpt b/ext/imap/tests/imap_fetch_overview_error.phpt index 629535b0bf..3bba1a2426 100644 --- a/ext/imap/tests/imap_fetch_overview_error.phpt +++ b/ext/imap/tests/imap_fetch_overview_error.phpt @@ -32,7 +32,6 @@ var_dump( imap_fetch_overview($stream_id, $msg_no, $options, $extra_arg) ); echo "\n-- Testing imap_fetch_overview() function with less than expected no. of arguments --\n"; var_dump( imap_fetch_overview($stream_id) ); ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -51,4 +50,3 @@ NULL Warning: imap_fetch_overview() expects at least 2 parameters, 1 given in %s on line %d NULL -===DONE=== diff --git a/ext/imap/tests/imap_fetch_overview_variation3.phpt b/ext/imap/tests/imap_fetch_overview_variation3.phpt index 3c52c73d90..04ad6f4790 100644 --- a/ext/imap/tests/imap_fetch_overview_variation3.phpt +++ b/ext/imap/tests/imap_fetch_overview_variation3.phpt @@ -48,7 +48,6 @@ foreach($options as $option) { } ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -77,4 +76,3 @@ Warning: imap_fetch_overview(): invalid value for the options parameter in %s on Testing with option value:int(-%d) Warning: imap_fetch_overview(): invalid value for the options parameter in %s on line %d -===DONE=== diff --git a/ext/imap/tests/imap_fetch_overview_variation5.phpt b/ext/imap/tests/imap_fetch_overview_variation5.phpt index c052b39384..eecb6f0b77 100644 --- a/ext/imap/tests/imap_fetch_overview_variation5.phpt +++ b/ext/imap/tests/imap_fetch_overview_variation5.phpt @@ -42,7 +42,6 @@ foreach($sequences as $msg_no) { // clear error stack imap_errors(); ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -135,4 +134,3 @@ deleted is 0 seen is 0 draft is 0 udate is OK -===DONE=== diff --git a/ext/imap/tests/imap_fetch_overview_variation6.phpt b/ext/imap/tests/imap_fetch_overview_variation6.phpt index d284f9bf94..1ca9fd51da 100644 --- a/ext/imap/tests/imap_fetch_overview_variation6.phpt +++ b/ext/imap/tests/imap_fetch_overview_variation6.phpt @@ -85,7 +85,6 @@ function create_multipart_message($imap_stream, $mailbox) { } ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -106,4 +105,3 @@ deleted is 0 seen is 0 draft is 0 udate is OK -===DONE=== diff --git a/ext/imap/tests/imap_fetchbody_basic.phpt b/ext/imap/tests/imap_fetchbody_basic.phpt index 66fa345535..797ec08bf5 100644 --- a/ext/imap/tests/imap_fetchbody_basic.phpt +++ b/ext/imap/tests/imap_fetchbody_basic.phpt @@ -56,7 +56,6 @@ $overview = imap_fetch_overview($stream_id, 1); echo "Seen Flag: "; var_dump( $overview[0]->seen ); ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -78,4 +77,3 @@ string(36) "message 2:yyyyyyyyyyyyyyyyyyyyyyyyyy" -- Mandatory arguments -- string(36) "message 2:yyyyyyyyyyyyyyyyyyyyyyyyyy" Seen Flag: int(%d) -===DONE=== diff --git a/ext/imap/tests/imap_fetchbody_error.phpt b/ext/imap/tests/imap_fetchbody_error.phpt index c45371a813..89b54bf739 100644 --- a/ext/imap/tests/imap_fetchbody_error.phpt +++ b/ext/imap/tests/imap_fetchbody_error.phpt @@ -35,7 +35,6 @@ echo "\n-- Testing imap_fetchbody() function with less than expected no. of argu var_dump( imap_fetchbody($stream_id, $msg_no) ); ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -54,4 +53,3 @@ NULL Warning: imap_fetchbody() expects at least 3 parameters, 2 given in %s on line %d NULL -===DONE=== diff --git a/ext/imap/tests/imap_fetchbody_variation4.phpt b/ext/imap/tests/imap_fetchbody_variation4.phpt index 3259ed9321..df773a3fb7 100644 --- a/ext/imap/tests/imap_fetchbody_variation4.phpt +++ b/ext/imap/tests/imap_fetchbody_variation4.phpt @@ -45,7 +45,6 @@ foreach($options as $option) { } ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -76,4 +75,3 @@ FT_UID not valid Warning: imap_fetchbody(): invalid value for the options parameter in %s on line %d FT_UID not valid -===DONE=== diff --git a/ext/imap/tests/imap_fetchbody_variation6.phpt b/ext/imap/tests/imap_fetchbody_variation6.phpt index 18f7d3a40d..1f179633ef 100644 --- a/ext/imap/tests/imap_fetchbody_variation6.phpt +++ b/ext/imap/tests/imap_fetchbody_variation6.phpt @@ -36,7 +36,6 @@ foreach($sequences as $msg_no) { } } ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -67,4 +66,3 @@ string(%d) "1: this is a test message, please ignore%a" Notice: A non well formed numeric value encountered in %s on line %d string(%d) "1: this is a test message, please ignore%a" -===DONE=== diff --git a/ext/imap/tests/imap_fetchheader_basic.phpt b/ext/imap/tests/imap_fetchheader_basic.phpt index 4ffa34c09e..fd43ceec94 100644 --- a/ext/imap/tests/imap_fetchheader_basic.phpt +++ b/ext/imap/tests/imap_fetchheader_basic.phpt @@ -36,7 +36,6 @@ foreach ($options as $key => $option) { echo "\n-- Mandatory arguments --\n"; var_dump( imap_fetchheader($stream_id, $msg_no) ); ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -80,4 +79,3 @@ MIME-Version: 1.0 Content-Type: %s; %s " -===DONE=== diff --git a/ext/imap/tests/imap_fetchheader_error.phpt b/ext/imap/tests/imap_fetchheader_error.phpt index 82a47b64f1..b1d9921831 100644 --- a/ext/imap/tests/imap_fetchheader_error.phpt +++ b/ext/imap/tests/imap_fetchheader_error.phpt @@ -33,7 +33,6 @@ var_dump( imap_fetchheader($stream_id) ); imap_close($stream_id); ?> -===DONE=== --EXPECTF-- *** Testing imap_fetchheader() : error conditions *** @@ -46,4 +45,3 @@ NULL Warning: imap_fetchheader() expects at least 2 parameters, 1 given in %s on line %d NULL -===DONE=== diff --git a/ext/imap/tests/imap_fetchheader_variation3.phpt b/ext/imap/tests/imap_fetchheader_variation3.phpt index 8230fdcf3e..e07a97b121 100644 --- a/ext/imap/tests/imap_fetchheader_variation3.phpt +++ b/ext/imap/tests/imap_fetchheader_variation3.phpt @@ -43,7 +43,6 @@ foreach($options as $option) { $iterator++; } ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -74,4 +73,3 @@ FT_UID not valid Warning: imap_fetchheader(): invalid value for the options parameter in %s on line %d FT_UID not valid -===DONE=== diff --git a/ext/imap/tests/imap_fetchheader_variation5.phpt b/ext/imap/tests/imap_fetchheader_variation5.phpt index 8773621b09..77e334b6a1 100644 --- a/ext/imap/tests/imap_fetchheader_variation5.phpt +++ b/ext/imap/tests/imap_fetchheader_variation5.phpt @@ -37,7 +37,6 @@ foreach($sequences as $msg_no) { // clear error stack imap_errors(); ?> -===DONE=== --CLEAN-- <?php require_once(__DIR__.'/clean.inc'); @@ -80,4 +79,3 @@ MIME-Version: 1.0 Content-Type: MULTIPART/mixed; BOUNDARY="%s" " -===DONE=== diff --git a/ext/imap/tests/imap_mail_copy.phpt b/ext/imap/tests/imap_mail_copy.phpt index 12a85a1804..9202556169 100644 --- a/ext/imap/tests/imap_mail_copy.phpt +++ b/ext/imap/tests/imap_mail_copy.phpt @@ -31,7 +31,6 @@ var_dump(imap_mail_copy($stream_id, '')); imap_close($stream_id); ?> -===Done=== --EXPECTF-- Checking with no parameters @@ -51,4 +50,3 @@ NULL Warning: imap_mail_copy() expects at least 3 parameters, 2 given in %s on line %d NULL -===Done=== diff --git a/ext/imap/tests/imap_mail_copy_basic.phpt b/ext/imap/tests/imap_mail_copy_basic.phpt index a05951e8f6..7b8c69f104 100644 --- a/ext/imap/tests/imap_mail_copy_basic.phpt +++ b/ext/imap/tests/imap_mail_copy_basic.phpt @@ -31,7 +31,6 @@ var_dump(imap_mail_copy($imap_stream, '1', 'INBOX.'.$mailbox_prefix)); imap_close($imap_stream); ?> -===Done=== --CLEAN-- <?php require_once('clean.inc'); @@ -43,4 +42,3 @@ Create a temporary mailbox and add 1 msgs .. mailbox '%s' created Msg Count in new mailbox: 1 bool(true) -===Done=== diff --git a/ext/imap/tests/imap_mail_move.phpt b/ext/imap/tests/imap_mail_move.phpt index 122960b78c..3406288b27 100644 --- a/ext/imap/tests/imap_mail_move.phpt +++ b/ext/imap/tests/imap_mail_move.phpt @@ -31,7 +31,6 @@ var_dump(imap_mail_move($stream_id, '')); imap_close($stream_id); ?> -===Done=== --EXPECTF-- Checking with no parameters @@ -51,4 +50,3 @@ NULL Warning: imap_mail_move() expects at least 3 parameters, 2 given in %s on line %d NULL -===Done=== diff --git a/ext/imap/tests/imap_mail_move_basic.phpt b/ext/imap/tests/imap_mail_move_basic.phpt index 380d288d9b..390ec710c5 100644 --- a/ext/imap/tests/imap_mail_move_basic.phpt +++ b/ext/imap/tests/imap_mail_move_basic.phpt @@ -31,7 +31,6 @@ var_dump(imap_mail_move($imap_stream, '1', 'INBOX.'.$mailbox_prefix)); imap_close($imap_stream); ?> -===Done=== --CLEAN-- <?php require_once('clean.inc'); @@ -43,4 +42,3 @@ Create a temporary mailbox and add 1 msgs .. mailbox '%s' created Msg Count in new mailbox: 1 bool(true) -===Done=== |