From 8d1b2548e7654c9c575b256994db811326c3294e Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Sun, 18 Dec 2011 14:36:56 -0500 Subject: [PATCH] Unit test doc Attempting to finish off the two incomplete unit tests but couldn't because of a PECL bug. --- .../Application/WebSocket/Version/RFC6455Test.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/Ratchet/Tests/Application/WebSocket/Version/RFC6455Test.php b/tests/Ratchet/Tests/Application/WebSocket/Version/RFC6455Test.php index d34b6c7..3be4b74 100644 --- a/tests/Ratchet/Tests/Application/WebSocket/Version/RFC6455Test.php +++ b/tests/Ratchet/Tests/Application/WebSocket/Version/RFC6455Test.php @@ -119,8 +119,16 @@ class RFC6455Test extends \PHPUnit_Framework_TestCase { /** * @dataProvider headerHandshakeProvider + * @todo Can't finish this test until I rewrite headers */ public function testVariousHeadersToCheckHandshakeTolerance($pass, $header) { - $this->markTestIncomplete(); + return $this->markTestIncomplete(); + + if ($pass) { + $this->assertTrue(is_array($this->_version->handshake($header))); + } else { + $this->setExpectedException('InvalidArgumentException'); + $this->_version->handshake($header); + } } } \ No newline at end of file