diff options
Diffstat (limited to 'ext/sockets/tests/socket_accept-wrongparams.phpt')
-rw-r--r-- | ext/sockets/tests/socket_accept-wrongparams.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/sockets/tests/socket_accept-wrongparams.phpt b/ext/sockets/tests/socket_accept-wrongparams.phpt new file mode 100644 index 0000000..6bce05a --- /dev/null +++ b/ext/sockets/tests/socket_accept-wrongparams.phpt @@ -0,0 +1,16 @@ +--TEST-- +Test parameter handling in socket_accept() +--SKIPIF-- +<?php +if (!extension_loaded('sockets')) { + die('SKIP The sockets extension is not loaded.'); +} +--FILE-- +<?php +var_dump(socket_accept(null)); +--CREDITS-- +Till Klampaeckel, till@php.net +Berlin TestFest 2009 +--EXPECTF-- +Warning: socket_accept() expects parameter 1 to be resource, null given in %s on line %d +NULL |