summaryrefslogtreecommitdiff
path: root/ext/sockets/tests
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2018-02-19 05:59:41 -0300
committerNikita Popov <nikita.ppv@gmail.com>2018-02-20 21:53:48 +0100
commitded3d984c6133b1f508ed84e96df3316e207c99b (patch)
tree175c208197d72966fbeb22c1df9dac0a1a33124f /ext/sockets/tests
parenta00286921e8963d284a7a5db0c1fecffa6cb6b54 (diff)
downloadphp-git-ded3d984c6133b1f508ed84e96df3316e207c99b.tar.gz
Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
Diffstat (limited to 'ext/sockets/tests')
-rw-r--r--ext/sockets/tests/bug49341.phpt2
-rw-r--r--ext/sockets/tests/bug63000.phpt2
-rw-r--r--ext/sockets/tests/socket_abstract_path.phpt2
-rw-r--r--ext/sockets/tests/socket_abstract_path_sendmsg.phpt2
-rw-r--r--ext/sockets/tests/socket_bind.phpt2
-rw-r--r--ext/sockets/tests/socket_select-wrongparams-1-win32.phpt2
-rw-r--r--ext/sockets/tests/socket_send.phpt2
-rw-r--r--ext/sockets/tests/socket_send_win32.phpt2
8 files changed, 8 insertions, 8 deletions
diff --git a/ext/sockets/tests/bug49341.phpt b/ext/sockets/tests/bug49341.phpt
index 961b5e7bc8..a73c4c1c63 100644
--- a/ext/sockets/tests/bug49341.phpt
+++ b/ext/sockets/tests/bug49341.phpt
@@ -11,5 +11,5 @@ if (PHP_OS !== 'Darwin' && false === strpos(PHP_OS, 'BSD')) {
--FILE--
<?php
var_dump(defined('SO_REUSEPORT'));
---EXPECTF--
+--EXPECT--
bool(true)
diff --git a/ext/sockets/tests/bug63000.phpt b/ext/sockets/tests/bug63000.phpt
index c806ba4c08..364f9f965b 100644
--- a/ext/sockets/tests/bug63000.phpt
+++ b/ext/sockets/tests/bug63000.phpt
@@ -18,5 +18,5 @@ $so = socket_set_option($socket, IPPROTO_IP, MCAST_JOIN_GROUP, array(
"interface" => 0,
));
var_dump($so);
---EXPECTF--
+--EXPECT--
bool(true)
diff --git a/ext/sockets/tests/socket_abstract_path.phpt b/ext/sockets/tests/socket_abstract_path.phpt
index 816e5c11bb..4c89dc4238 100644
--- a/ext/sockets/tests/socket_abstract_path.phpt
+++ b/ext/sockets/tests/socket_abstract_path.phpt
@@ -37,7 +37,7 @@ checktimeout($conns, 500);
if (!socket_recv($conns, $buf, 20, 0)) die("recv");
print_r($buf);
?>
---EXPECTF--
+--EXPECT--
creating server socket
creating client socket
int(11)
diff --git a/ext/sockets/tests/socket_abstract_path_sendmsg.phpt b/ext/sockets/tests/socket_abstract_path_sendmsg.phpt
index 5a9275a26b..e8499e021c 100644
--- a/ext/sockets/tests/socket_abstract_path_sendmsg.phpt
+++ b/ext/sockets/tests/socket_abstract_path_sendmsg.phpt
@@ -33,7 +33,7 @@ checktimeout($s, 500);
if (!socket_recv($s, $buf, 20, 0)) die("recv");
print_r($buf);
?>
---EXPECTF--
+--EXPECT--
creating send socket
creating receive socket
int(11)
diff --git a/ext/sockets/tests/socket_bind.phpt b/ext/sockets/tests/socket_bind.phpt
index 7ea2df8e1c..28cf36c322 100644
--- a/ext/sockets/tests/socket_bind.phpt
+++ b/ext/sockets/tests/socket_bind.phpt
@@ -33,7 +33,7 @@ fa@php.net
var_dump($s_close);
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
int(16)
diff --git a/ext/sockets/tests/socket_select-wrongparams-1-win32.phpt b/ext/sockets/tests/socket_select-wrongparams-1-win32.phpt
index 34d46d6f6f..490bb7319a 100644
--- a/ext/sockets/tests/socket_select-wrongparams-1-win32.phpt
+++ b/ext/sockets/tests/socket_select-wrongparams-1-win32.phpt
@@ -18,7 +18,7 @@ $write = null;
$except = null;
$time = -1;
var_dump(socket_select($sockets, $write, $except, $time));
---EXPECTF--
+--EXPECT--
int(0)
--CREDITS--
Till Klampaeckel, till@php.net
diff --git a/ext/sockets/tests/socket_send.phpt b/ext/sockets/tests/socket_send.phpt
index 969a79eb2a..a11e0d7732 100644
--- a/ext/sockets/tests/socket_send.phpt
+++ b/ext/sockets/tests/socket_send.phpt
@@ -47,7 +47,7 @@ unset($stringSocketLength);
unset($socket);
unset($socketConn);
?>
---EXPECTF--
+--EXPECT--
okey
okey
okey
diff --git a/ext/sockets/tests/socket_send_win32.phpt b/ext/sockets/tests/socket_send_win32.phpt
index 0f2311b984..3f53dfc5a2 100644
--- a/ext/sockets/tests/socket_send_win32.phpt
+++ b/ext/sockets/tests/socket_send_win32.phpt
@@ -38,6 +38,6 @@ unset($stringSocketLength);
unset($socket);
unset($socketConn);
?>
---EXPECTF--
+--EXPECT--
okey
okey