Annotation of embedaddon/php/ext/imap/tests/imap_ping_error.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: imap_ping() incorrect parameter count
! 3: --CREDITS--
! 4: Paul Sohier
! 5: #phptestfest utrecht
! 6: --SKIPIF--
! 7: <?php
! 8: require_once(dirname(__FILE__).'/skipif.inc');
! 9: ?>
! 10: --FILE--
! 11: <?php
! 12: echo "Checking with no parameters\n";
! 13: imap_ping();
! 14:
! 15: echo "Checking with incorrect parameter type\n";
! 16: imap_ping('');
! 17: imap_ping(false);
! 18: ?>
! 19: --EXPECTF--
! 20: Checking with no parameters
! 21:
! 22: Warning: imap_ping() expects exactly 1 parameter, 0 given in %s on line %d
! 23: Checking with incorrect parameter type
! 24:
! 25: Warning: imap_ping() expects parameter 1 to be resource, %unicode_string_optional% given in %s on line %d
! 26:
! 27: Warning: imap_ping() expects parameter 1 to be resource, boolean given in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>