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