Annotation of embedaddon/php/ext/sockets/tests/socket_set_block-wrongparams.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test if socket_set_block throws E_WARNING with wrong parameters.
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('sockets')) {
! 6: die('SKIP The sockets extension is not loaded.');
! 7: }
! 8: ?>
! 9: --FILE--
! 10: <?php
! 11: socket_set_block(array());
! 12: ?>
! 13: --EXPECTF--
! 14: Warning: socket_set_block() expects parameter 1 to be resource, array given in %s on line %d
! 15: --CREDITS--
! 16: Robin Mehner, robin@coding-robin.de
! 17: PHP Testfest Berlin 2009-05-09
! 18:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>