aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2016-05-27 16:49:57 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2016-06-17 17:04:44 +0200
commitd1768f4e676356440645fc9135eaef5b79ad07f3 (patch)
tree418a4bf839716785e21e9beaf4a05d5dd4ce64c5
parent92b4e86e2d94d85634ff0f8ab6f1de3a16915db3 (diff)
downloadWebsocket-d1768f4e676356440645fc9135eaef5b79ad07f3.zip
Websocket-d1768f4e676356440645fc9135eaef5b79ad07f3.tar.gz
Websocket-d1768f4e676356440645fc9135eaef5b79ad07f3.tar.bz2
Test: Update a test case.
`case_constructor` is already tested in the `Generic` test suite. So testing `Rfc6455` is a generic protocol makes more sense.
-rw-r--r--Test/Unit/Protocol/Rfc6455.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Test/Unit/Protocol/Rfc6455.php b/Test/Unit/Protocol/Rfc6455.php
index c8ff5d9..821dd33 100644
--- a/Test/Unit/Protocol/Rfc6455.php
+++ b/Test/Unit/Protocol/Rfc6455.php
@@ -61,14 +61,14 @@ class Rfc6455 extends Test\Unit\Suite
->isEqualTo('258EAFA5-E914-47DA-95CA-C5AB0DC85B11');
}
- public function case_constructor()
+ public function case_extends_generic()
{
$this
->given($socket = new Socket\Server('tcp://*:1234'))
->when($result = new SUT($socket))
->then
- ->object($this->invoke($result)->getConnection())
- ->isIdenticalTo($socket);
+ ->object($result)
+ ->isInstanceOf(Websocket\Protocol\Generic::class);
}
public function case_do_handshake_missing_sec_websocket_key_header()