Unit test doc

Attempting to finish off the two incomplete unit tests but couldn't because of a PECL bug.
This commit is contained in:
Chris Boden 2011-12-18 14:36:56 -05:00
parent feb6c5ab57
commit 8d1b2548e7

View File

@ -119,8 +119,16 @@ class RFC6455Test extends \PHPUnit_Framework_TestCase {
/** /**
* @dataProvider headerHandshakeProvider * @dataProvider headerHandshakeProvider
* @todo Can't finish this test until I rewrite headers
*/ */
public function testVariousHeadersToCheckHandshakeTolerance($pass, $header) { 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);
}
} }
} }