CS
Removed a var_dump
Removed garbage from a unit test
This commit is contained in:
Chris Boden 2012-05-19 23:57:20 -04:00
parent ef995377d1
commit 71a2b33056
3 changed files with 3 additions and 5 deletions

View File

@ -40,8 +40,8 @@ class Hixie76 implements VersionInterface {
, 'Sec-WebSocket-Location' => 'ws://' . $request->getHeader('Host', true) . $request->getPath() , 'Sec-WebSocket-Location' => 'ws://' . $request->getHeader('Host', true) . $request->getPath()
); );
$response = new Response('101', $headers, $body); $response = new Response(101, $headers, $body);
$response->setStatus('101', 'WebSocket Protocol Handshake'); $response->setStatus(101, 'WebSocket Protocol Handshake');
return $response; return $response;
} }
@ -68,7 +68,7 @@ class Hixie76 implements VersionInterface {
} }
public function generateKeyNumber($key) { public function generateKeyNumber($key) {
if (0 === substr_count($key, ' ')) { if (0 === mb_substr_count($key, ' ', 'ASCII')) {
return ''; return '';
} }

View File

@ -4,7 +4,6 @@ use Ratchet\WebSocket\Version\RFC6455\HandshakeVerifier;
use Guzzle\Http\Message\RequestInterface; use Guzzle\Http\Message\RequestInterface;
use Guzzle\Http\Message\Response; use Guzzle\Http\Message\Response;
/** /**
* @link http://tools.ietf.org/html/rfc6455 * @link http://tools.ietf.org/html/rfc6455
*/ */

View File

@ -171,7 +171,6 @@ class WsServer implements MessageComponentInterface {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function onError(ConnectionInterface $conn, \Exception $e) { public function onError(ConnectionInterface $conn, \Exception $e) {
var_dump($e);
if ($conn->WebSocket->established) { if ($conn->WebSocket->established) {
$this->_decorating->onError($this->connections[$conn], $e); $this->_decorating->onError($this->connections[$conn], $e);
} else { } else {