aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-05-30 16:53:08 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-06-17 17:04:44 +0200
commitcb1536badcf062a80ef70e5ecbbcf479b4b6ff68 (patch)
treedcf5ce6300f4cdff4045dbe61152337938209b65
parent5739e7c5228e05b8f4f74b5369fc0cf577839d50 (diff)
downloadWebsocket-cb1536badcf062a80ef70e5ecbbcf479b4b6ff68.zip
Websocket-cb1536badcf062a80ef70e5ecbbcf479b4b6ff68.tar.gz
Websocket-cb1536badcf062a80ef70e5ecbbcf479b4b6ff68.tar.bz2
Test: Ensure disconnection if handshake fails.
-rw-r--r--Test/Unit/Server.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Test/Unit/Server.php b/Test/Unit/Server.php
index 86045e9..047c472 100644
--- a/Test/Unit/Server.php
+++ b/Test/Unit/Server.php
@@ -255,6 +255,8 @@ class Server extends Test\Unit\Suite
->when($result = $server->getRequest())
->then
->object($result)
- ->isIdenticalTo($requestB);
+ ->isIdenticalTo($requestB)
+ ->boolean($socket->isDisconnected())
+ ->isTrue();
}
}