From a4cc9d83a130cd99c5074ce3a38e519757c15384 Mon Sep 17 00:00:00 2001 From: Jens de Nies Date: Wed, 13 May 2020 20:15:39 +0200 Subject: [PATCH] Removed pure zpp tests in the imap extension Closes GH-5569. --- ext/imap/tests/imap_alerts_error.phpt | 29 ---------- ext/imap/tests/imap_close_error.phpt | 43 --------------- ext/imap/tests/imap_expunge_error.phpt | 27 --------- ext/imap/tests/imap_fetch_overview_error.phpt | 52 ------------------ ext/imap/tests/imap_fetchbody_error.phpt | 55 ------------------- ext/imap/tests/imap_fetchheader_error.phpt | 47 ---------------- ext/imap/tests/imap_headerinfo_error.phpt | 36 ------------ ext/imap/tests/imap_headers.phpt | 27 --------- ext/imap/tests/imap_mail_copy.phpt | 52 ------------------ ext/imap/tests/imap_mail_move.phpt | 52 ------------------ ext/imap/tests/imap_num_msg_error.phpt | 27 --------- ext/imap/tests/imap_num_recent_error.phpt | 27 --------- ext/imap/tests/imap_ping_error.phpt | 27 --------- ext/imap/tests/imap_undelete_error.phpt | 36 ------------ 14 files changed, 537 deletions(-) delete mode 100644 ext/imap/tests/imap_alerts_error.phpt delete mode 100644 ext/imap/tests/imap_close_error.phpt delete mode 100644 ext/imap/tests/imap_expunge_error.phpt delete mode 100644 ext/imap/tests/imap_fetch_overview_error.phpt delete mode 100644 ext/imap/tests/imap_fetchbody_error.phpt delete mode 100644 ext/imap/tests/imap_fetchheader_error.phpt delete mode 100644 ext/imap/tests/imap_headerinfo_error.phpt delete mode 100644 ext/imap/tests/imap_headers.phpt delete mode 100644 ext/imap/tests/imap_mail_copy.phpt delete mode 100644 ext/imap/tests/imap_mail_move.phpt delete mode 100644 ext/imap/tests/imap_num_msg_error.phpt delete mode 100644 ext/imap/tests/imap_num_recent_error.phpt delete mode 100644 ext/imap/tests/imap_ping_error.phpt delete mode 100644 ext/imap/tests/imap_undelete_error.phpt diff --git a/ext/imap/tests/imap_alerts_error.phpt b/ext/imap/tests/imap_alerts_error.phpt deleted file mode 100644 index 620d6d1e80..0000000000 --- a/ext/imap/tests/imap_alerts_error.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -Test imap_alerts() function : error conditions ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -*** Testing imap_alerts() : error conditions *** - --- Testing imap_alerts() function with one argument -- - -Warning: imap_alerts() expects exactly 0 parameters, 1 given in %s on line %d -NULL diff --git a/ext/imap/tests/imap_close_error.phpt b/ext/imap/tests/imap_close_error.phpt deleted file mode 100644 index ae370c7ef0..0000000000 --- a/ext/imap/tests/imap_close_error.phpt +++ /dev/null @@ -1,43 +0,0 @@ ---TEST-- -Test imap_close() function : error conditions - incorrect number of args ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -*** Testing imap_close() : error conditions *** - --- Testing imap_close() function with Zero arguments -- - -Warning: imap_close() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing imap_close() function with more than expected no. of arguments -- - -Warning: imap_close() expects at most 2 parameters, 3 given in %s on line %d -NULL diff --git a/ext/imap/tests/imap_expunge_error.phpt b/ext/imap/tests/imap_expunge_error.phpt deleted file mode 100644 index b27038093c..0000000000 --- a/ext/imap/tests/imap_expunge_error.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -imap_num_recent() incorrect parameter count ---CREDITS-- -Paul Sohier -#phptestfest utrecht ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Checking with no parameters - -Warning: imap_num_recent() expects exactly 1 parameter, 0 given in %s on line %d -Checking with incorrect parameter type - -Warning: imap_num_recent(): Argument #1 must be of type resource, string given in %s on line %d - -Warning: imap_num_recent(): Argument #1 must be of type resource, bool given in %s on line %d diff --git a/ext/imap/tests/imap_fetch_overview_error.phpt b/ext/imap/tests/imap_fetch_overview_error.phpt deleted file mode 100644 index 3bba1a2426..0000000000 --- a/ext/imap/tests/imap_fetch_overview_error.phpt +++ /dev/null @@ -1,52 +0,0 @@ ---TEST-- -Test imap_fetch_overview() function : error conditions - incorrect number of args ---SKIPIF-- - ---FILE-- - ---CLEAN-- - ---EXPECTF-- -*** Testing imap_fetch_overview() : error conditions *** - --- Testing imap_fetch_overview() function with more than expected no. of arguments -- -Create a temporary mailbox and add 2 msgs -.. mailbox '{%s}%s' created - -Warning: imap_fetch_overview() expects at most 3 parameters, 4 given in %s on line %d -NULL - --- Testing imap_fetch_overview() function with less than expected no. of arguments -- - -Warning: imap_fetch_overview() expects at least 2 parameters, 1 given in %s on line %d -NULL diff --git a/ext/imap/tests/imap_fetchbody_error.phpt b/ext/imap/tests/imap_fetchbody_error.phpt deleted file mode 100644 index 89b54bf739..0000000000 --- a/ext/imap/tests/imap_fetchbody_error.phpt +++ /dev/null @@ -1,55 +0,0 @@ ---TEST-- -Test imap_fetchbody() function : error conditions - incorrect number of args ---SKIPIF-- - ---FILE-- - ---CLEAN-- - ---EXPECTF-- -*** Testing imap_fetchbody() : error conditions *** - --- Testing imap_fetchbody() function with more than expected no. of arguments -- -Create a temporary mailbox and add 1 msgs -.. mailbox '{%s}%s' created - -Warning: imap_fetchbody() expects at most 4 parameters, 5 given in %s on line %d -NULL - --- Testing imap_fetchbody() function with less than expected no. of arguments -- - -Warning: imap_fetchbody() expects at least 3 parameters, 2 given in %s on line %d -NULL diff --git a/ext/imap/tests/imap_fetchheader_error.phpt b/ext/imap/tests/imap_fetchheader_error.phpt deleted file mode 100644 index b1d9921831..0000000000 --- a/ext/imap/tests/imap_fetchheader_error.phpt +++ /dev/null @@ -1,47 +0,0 @@ ---TEST-- -Test imap_fetchheader() function : error conditions - incorrect number of args ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -*** Testing imap_fetchheader() : error conditions *** - --- Testing imap_fetchheader() function with more than expected no. of arguments -- - -Warning: imap_fetchheader() expects at most 3 parameters, 4 given in %s on line %d -NULL - --- Testing imap_fetchheader() function with less than expected no. of arguments -- - -Warning: imap_fetchheader() expects at least 2 parameters, 1 given in %s on line %d -NULL diff --git a/ext/imap/tests/imap_headerinfo_error.phpt b/ext/imap/tests/imap_headerinfo_error.phpt deleted file mode 100644 index 3f3c593d06..0000000000 --- a/ext/imap/tests/imap_headerinfo_error.phpt +++ /dev/null @@ -1,36 +0,0 @@ ---TEST-- -imap_headerinfo() incorrect parameter count ---CREDITS-- -Olivier Doucet ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Checking with no parameters - -Warning: imap_headerinfo() expects at least 2 parameters, 0 given in %s on line %d -Checking with incorrect parameter type - -Warning: imap_headerinfo() expects at least 2 parameters, 1 given in %s on line %d - -Warning: imap_headerinfo() expects at least 2 parameters, 1 given in %s on line %d - -Warning: imap_headerinfo() expects at least 2 parameters, 1 given in %s on line %d diff --git a/ext/imap/tests/imap_headers.phpt b/ext/imap/tests/imap_headers.phpt deleted file mode 100644 index 1ff30bfc10..0000000000 --- a/ext/imap/tests/imap_headers.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -imap_headers() incorrect parameter count ---CREDITS-- -Paul Sohier -#phptestfest utrecht ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Checking with no parameters - -Warning: imap_headers() expects exactly 1 parameter, 0 given in %s on line %d -Checking with incorrect parameter type - -Warning: imap_headers(): Argument #1 must be of type resource, string given in %s on line %d - -Warning: imap_headers(): Argument #1 must be of type resource, bool given in %s on line %d diff --git a/ext/imap/tests/imap_mail_copy.phpt b/ext/imap/tests/imap_mail_copy.phpt deleted file mode 100644 index c82a003a59..0000000000 --- a/ext/imap/tests/imap_mail_copy.phpt +++ /dev/null @@ -1,52 +0,0 @@ ---TEST-- -Test imap_mail_copy() incorrect parameters ---CREDITS-- -Olivier Doucet ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Checking with no parameters - -Warning: imap_mail_copy() expects at least 3 parameters, 0 given in %s on line %d -Checking with incorrect parameter type - -Warning: imap_mail_copy() expects at least 3 parameters, 1 given in %s on line %d - -Warning: imap_mail_copy() expects at least 3 parameters, 1 given in %s on line %d -Test with IMAP server - -Warning: imap_mail_copy() expects at least 3 parameters, 1 given in %s on line %d -NULL - -Warning: imap_mail_copy() expects at least 3 parameters, 2 given in %s on line %d -NULL - -Warning: imap_mail_copy() expects at least 3 parameters, 2 given in %s on line %d -NULL diff --git a/ext/imap/tests/imap_mail_move.phpt b/ext/imap/tests/imap_mail_move.phpt deleted file mode 100644 index d6d874b80d..0000000000 --- a/ext/imap/tests/imap_mail_move.phpt +++ /dev/null @@ -1,52 +0,0 @@ ---TEST-- -Test imap_mail_move() incorrect parameters ---CREDITS-- -Olivier Doucet ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Checking with no parameters - -Warning: imap_mail_move() expects at least 3 parameters, 0 given in %s on line %d -Checking with incorrect parameter type - -Warning: imap_mail_move() expects at least 3 parameters, 1 given in %s on line %d - -Warning: imap_mail_move() expects at least 3 parameters, 1 given in %s on line %d -Test with IMAP server - -Warning: imap_mail_move() expects at least 3 parameters, 1 given in %s on line %d -NULL - -Warning: imap_mail_move() expects at least 3 parameters, 2 given in %s on line %d -NULL - -Warning: imap_mail_move() expects at least 3 parameters, 2 given in %s on line %d -NULL diff --git a/ext/imap/tests/imap_num_msg_error.phpt b/ext/imap/tests/imap_num_msg_error.phpt deleted file mode 100644 index 28a727ddb2..0000000000 --- a/ext/imap/tests/imap_num_msg_error.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -imap_num_msg() incorrect parameter count ---CREDITS-- -Paul Sohier -#phptestfest utrecht ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Checking with no parameters - -Warning: imap_num_msg() expects exactly 1 parameter, 0 given in %s on line %d -Checking with incorrect parameter type - -Warning: imap_num_msg(): Argument #1 must be of type resource, string given in %s on line %d - -Warning: imap_num_msg(): Argument #1 must be of type resource, bool given in %s on line %d diff --git a/ext/imap/tests/imap_num_recent_error.phpt b/ext/imap/tests/imap_num_recent_error.phpt deleted file mode 100644 index 0bb877c76d..0000000000 --- a/ext/imap/tests/imap_num_recent_error.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -imap_expunge() incorrect parameter count ---CREDITS-- -Paul Sohier -#phptestfest utrecht ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Checking with no parameters - -Warning: imap_expunge() expects exactly 1 parameter, 0 given in %s on line %d -Checking with incorrect parameter type - -Warning: imap_expunge(): Argument #1 must be of type resource, string given in %s on line %d - -Warning: imap_expunge(): Argument #1 must be of type resource, bool given in %s on line %d diff --git a/ext/imap/tests/imap_ping_error.phpt b/ext/imap/tests/imap_ping_error.phpt deleted file mode 100644 index 2aedcbddd5..0000000000 --- a/ext/imap/tests/imap_ping_error.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -imap_ping() incorrect parameter count ---CREDITS-- -Paul Sohier -#phptestfest utrecht ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Checking with no parameters - -Warning: imap_ping() expects exactly 1 parameter, 0 given in %s on line %d -Checking with incorrect parameter type - -Warning: imap_ping(): Argument #1 must be of type resource, string given in %s on line %d - -Warning: imap_ping(): Argument #1 must be of type resource, bool given in %s on line %d diff --git a/ext/imap/tests/imap_undelete_error.phpt b/ext/imap/tests/imap_undelete_error.phpt deleted file mode 100644 index 972c8140c6..0000000000 --- a/ext/imap/tests/imap_undelete_error.phpt +++ /dev/null @@ -1,36 +0,0 @@ ---TEST-- -imap_undelete() incorrect parameter count ---CREDITS-- -Olivier Doucet ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Checking with no parameters - -Warning: imap_undelete() expects at least 2 parameters, 0 given in %s on line %d -Checking with incorrect parameter type - -Warning: imap_undelete() expects at least 2 parameters, 1 given in %s on line %d - -Warning: imap_undelete() expects at least 2 parameters, 1 given in %s on line %d - -Warning: imap_undelete() expects at least 2 parameters, 1 given in %s on line %d -- 2.40.0