summaryrefslogtreecommitdiff
path: root/ext/imap/tests/imap_expunge_error.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-05-16 21:13:43 +0000
committerFelipe Pena <felipe@php.net>2009-05-16 21:13:43 +0000
commit1bcc3aac334ed98c66d727a655b7dfc3de91ddf6 (patch)
tree8f7e042a2ab8ada91b85cd9be0812d4e50b1c96a /ext/imap/tests/imap_expunge_error.phpt
parent8a8e0361751b52aef82216679f29dae4d79258c4 (diff)
downloadphp-git-1bcc3aac334ed98c66d727a655b7dfc3de91ddf6.tar.gz
- New tests (testfest DutchUG)
Diffstat (limited to 'ext/imap/tests/imap_expunge_error.phpt')
-rw-r--r--ext/imap/tests/imap_expunge_error.phpt27
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/imap/tests/imap_expunge_error.phpt b/ext/imap/tests/imap_expunge_error.phpt
new file mode 100644
index 0000000000..d99dcf0ff1
--- /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--
+<?php
+require_once(dirname(__FILE__).'/skipif.inc');
+?>
+--FILE--
+<?php
+echo "Checking with no parameters\n";
+imap_num_recent();
+
+echo "Checking with incorrect parameter type\n";
+imap_num_recent('');
+imap_num_recent(false);
+?>
+--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() expects parameter 1 to be resource, %unicode_string_optional% given in %s on line %d
+
+Warning: imap_num_recent() expects parameter 1 to be resource, boolean given in %s on line %d