summaryrefslogtreecommitdiff
path: root/ext/sockets/tests/socket_create_pair-wrongparams.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sockets/tests/socket_create_pair-wrongparams.phpt')
-rw-r--r--ext/sockets/tests/socket_create_pair-wrongparams.phpt12
1 files changed, 2 insertions, 10 deletions
diff --git a/ext/sockets/tests/socket_create_pair-wrongparams.phpt b/ext/sockets/tests/socket_create_pair-wrongparams.phpt
index 856d2cdc52..41154620ad 100644
--- a/ext/sockets/tests/socket_create_pair-wrongparams.phpt
+++ b/ext/sockets/tests/socket_create_pair-wrongparams.phpt
@@ -10,23 +10,15 @@ if (!extension_loaded('sockets')) {
}
--FILE--
<?php
-var_dump(socket_create_pair(AF_INET, null, null));
-
-$domain = 'unknown';
-var_dump(socket_create_pair($domain, SOCK_STREAM, 0, $sockets));
var_dump(socket_create_pair(AF_INET, null, null, $sockets));
var_dump(socket_create_pair(31337, null, null, $sockets));
var_dump(socket_create_pair(AF_INET, 31337, 0, $sockets));
---EXPECTF--
-Warning: socket_create_pair() expects exactly 4 parameters, 3 given in %s on line %d
-NULL
-
-Warning: socket_create_pair() expects parameter 1 to be int, string given in %s on line %d
-NULL
+?>
+--EXPECTF--
Warning: socket_create_pair(): unable to create socket pair [%d]: %s not supported in %s on line %d
bool(false)