From: Felipe Pena Date: Sat, 16 May 2009 23:56:23 +0000 (+0000) Subject: - New tests (testfest DutchUG) X-Git-Tag: php-5.2.10RC1~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7323f24b58e26280947e5bf68506e2f0c287015b;p=php - New tests (testfest DutchUG) --- diff --git a/ext/imap/tests/imap_body.phpt b/ext/imap/tests/imap_body.phpt new file mode 100644 index 0000000000..f21ac25bac --- /dev/null +++ b/ext/imap/tests/imap_body.phpt @@ -0,0 +1,27 @@ +--TEST-- +imap_body() incorrect parameter count +--CREDITS-- +Paul Sohier +#phptestfest utrecht +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Checking with no parameters + +Warning: Wrong parameter count for imap_body() in %s on line %d +Checking with incorrect parameter type + +Warning: Wrong parameter count for imap_body() in %s on line %d + +Warning: Wrong parameter count for imap_body() in %s on line %d diff --git a/ext/imap/tests/imap_expunge_error.phpt b/ext/imap/tests/imap_expunge_error.phpt new file mode 100644 index 0000000000..fe51762106 --- /dev/null +++ b/ext/imap/tests/imap_expunge_error.phpt @@ -0,0 +1,27 @@ +--TEST-- +imap_num_recent() incorrect parameter count +--CREDITS-- +Paul Sohier +#phptestfest utrecht +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Checking with no parameters + +Warning: Wrong parameter count for imap_num_recent() in %s on line %d +Checking with incorrect parameter type + +Warning: imap_num_recent(): supplied argument is not a valid imap resource in %s on line %d + +Warning: imap_num_recent(): supplied argument is not a valid imap resource in %s on line %d diff --git a/ext/imap/tests/imap_headers.phpt b/ext/imap/tests/imap_headers.phpt new file mode 100644 index 0000000000..3dca26425b --- /dev/null +++ b/ext/imap/tests/imap_headers.phpt @@ -0,0 +1,27 @@ +--TEST-- +imap_headers() incorrect parameter count +--CREDITS-- +Paul Sohier +#phptestfest utrecht +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Checking with no parameters + +Warning: Wrong parameter count for imap_headers() in %s on line %d +Checking with incorrect parameter type + +Warning: imap_headers(): supplied argument is not a valid imap resource in %s on line %d + +Warning: imap_headers(): supplied argument is not a valid imap resource in %s on line %d diff --git a/ext/imap/tests/imap_num_msg_error.phpt b/ext/imap/tests/imap_num_msg_error.phpt new file mode 100644 index 0000000000..bf023043d5 --- /dev/null +++ b/ext/imap/tests/imap_num_msg_error.phpt @@ -0,0 +1,27 @@ +--TEST-- +imap_num_msg() incorrect parameter count +--CREDITS-- +Paul Sohier +#phptestfest utrecht +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Checking with no parameters + +Warning: Wrong parameter count for imap_num_msg() in %s on line %d +Checking with incorrect parameter type + +Warning: imap_num_msg(): supplied argument is not a valid imap resource in %s on line %d + +Warning: imap_num_msg(): supplied argument is not a valid imap resource 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 new file mode 100644 index 0000000000..cdb5b3ec97 --- /dev/null +++ b/ext/imap/tests/imap_num_recent_error.phpt @@ -0,0 +1,27 @@ +--TEST-- +imap_expunge() incorrect parameter count +--CREDITS-- +Paul Sohier +#phptestfest utrecht +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Checking with no parameters + +Warning: Wrong parameter count for imap_expunge() in %s on line %d +Checking with incorrect parameter type + +Warning: imap_expunge(): supplied argument is not a valid imap resource in %s on line %d + +Warning: imap_expunge(): supplied argument is not a valid imap resource in %s on line %d diff --git a/ext/imap/tests/imap_open_error.phpt b/ext/imap/tests/imap_open_error.phpt new file mode 100644 index 0000000000..2777ec6526 --- /dev/null +++ b/ext/imap/tests/imap_open_error.phpt @@ -0,0 +1,42 @@ +--TEST-- +imap_open() incorrect parameter count +--CREDITS-- +Paul Sohier +#phptestfest utrecht +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Checking with no parameters + +Warning: Wrong parameter count for imap_open() in %s on line %d + +Warning: Wrong parameter count for imap_open() in %s on line %d + +Warning: Wrong parameter count for imap_open() in %s on line %d + +Warning: Wrong parameter count for imap_open() in %s on line %d + +Warning: Wrong parameter count for imap_open() in %s on line %d +Checking with incorrect parameters + +Warning: imap_open(): Couldn't open stream in %s on line %d + +Warning: imap_open(): Couldn't open stream in %s on line %d + +Notice: Unknown: Can't open mailbox : no such mailbox (errflg=2) in Unknown on line 0 diff --git a/ext/imap/tests/imap_ping_error.phpt b/ext/imap/tests/imap_ping_error.phpt new file mode 100644 index 0000000000..ce1e2a5b07 --- /dev/null +++ b/ext/imap/tests/imap_ping_error.phpt @@ -0,0 +1,27 @@ +--TEST-- +imap_ping() incorrect parameter count +--CREDITS-- +Paul Sohier +#phptestfest utrecht +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Checking with no parameters + +Warning: Wrong parameter count for imap_ping() in %s on line %d +Checking with incorrect parameter type + +Warning: imap_ping(): supplied argument is not a valid imap resource in %s on line %d + +Warning: imap_ping(): supplied argument is not a valid imap resource in %s on line %d