aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-08 15:25:32 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2017-11-08 15:25:32 +0100
commit8d6e17f6436db792a39522ba24b6f63b74aab9dd (patch)
tree55c165b5ea642dff370208d469340b4d60608983
parentdc9d1bb0121366d16c5ae0c32ac06d1110ac1e4b (diff)
downloadSocket-8d6e17f6436db792a39522ba24b6f63b74aab9dd.zip
Socket-8d6e17f6436db792a39522ba24b6f63b74aab9dd.tar.gz
Socket-8d6e17f6436db792a39522ba24b6f63b74aab9dd.tar.bz2
chore(php) Update to PHP 7.
-rw-r--r--Test/Unit/Server.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/Test/Unit/Server.php b/Test/Unit/Server.php
index 3978369..6e1ef03 100644
--- a/Test/Unit/Server.php
+++ b/Test/Unit/Server.php
@@ -537,8 +537,10 @@ class Server extends Test\Unit\Suite
$oldStack = $this->invoke($server)->getStack(),
$this->calling($other)->isDisconnected = $disconnected,
- $this->calling($other)->connect = function () use (&$called): void {
+ $this->calling($other)->connect = function () use (&$called, $other) {
$called = true;
+
+ return $other;
}
)
->when($result = $server->consider($other))
@@ -587,8 +589,10 @@ class Server extends Test\Unit\Suite
$oldStack = $this->invoke($server)->getStack(),
$this->calling($other)->isDisconnected = $disconnected,
- $this->calling($other)->connectAndWait = function () use (&$called): void {
+ $this->calling($other)->connectAndWait = function () use (&$called, $other) {
$called = true;
+
+ return $other;
}
)
->when($result = $server->consider($other))