Annotation of embedaddon/php/ext/sockets/tests/socket_set_nonblock-wrongparams.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test if socket_set_nonblock 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: --FILE--
        !             9: <?php
        !            10: $socket = socket_set_nonblock(array());
        !            11: ?>
        !            12: --EXPECTF--
        !            13: Warning: socket_set_nonblock() expects parameter 1 to be resource, array given in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>