summaryrefslogtreecommitdiff
path: root/ext/sockets/tests/socket_select-wrongparams-2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sockets/tests/socket_select-wrongparams-2.phpt')
-rw-r--r--ext/sockets/tests/socket_select-wrongparams-2.phpt10
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/sockets/tests/socket_select-wrongparams-2.phpt b/ext/sockets/tests/socket_select-wrongparams-2.phpt
index d45bc4c44a..601ddb4efa 100644
--- a/ext/sockets/tests/socket_select-wrongparams-2.phpt
+++ b/ext/sockets/tests/socket_select-wrongparams-2.phpt
@@ -11,10 +11,14 @@ $sockets = null;
$write = null;
$except = null;
$time = 0;
-var_dump(socket_select($sockets, $write, $except, $time));
+
+try {
+ socket_select($sockets, $write, $except, $time);
+} catch (ValueError $exception) {
+ echo $exception->getMessage() . "\n";
+}
--EXPECTF--
-Warning: socket_select(): No resource arrays were passed to select in %s on line %d
-bool(false)
+socket_select(): At least one array argument must be passed
--CREDITS--
Till Klampaeckel, till@php.net
Berlin TestFest 2009