Case sensitiviy fixes

This commit is contained in:
Chris Boden 2012-05-08 23:19:28 -04:00
parent 4735218aa0
commit 0d592ae875
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ namespace Ratchet\Tests\Mock;
use Ratchet\Wamp\WampServerInterface; use Ratchet\Wamp\WampServerInterface;
use Ratchet\ConnectionInterface; use Ratchet\ConnectionInterface;
class WAMPComponent implements WampServerInterface { class WampComponent implements WampServerInterface {
public $last = array(); public $last = array();
public function onCall(ConnectionInterface $conn, $id, $procURI, array $params) { public function onCall(ConnectionInterface $conn, $id, $procURI, array $params) {

View File

@ -38,7 +38,7 @@ class WampServerTest extends \PHPUnit_Framework_TestCase {
* @dataProvider invalidMessageProvider * @dataProvider invalidMessageProvider
*/ */
public function testInvalidMessages($type) { public function testInvalidMessages($type) {
$this->setExpectedException('\\Ratchet\\WAMP\\Exception'); $this->setExpectedException('\\Ratchet\\Wamp\\Exception');
$conn = $this->newConn(); $conn = $this->newConn();
$this->_comp->onOpen($conn); $this->_comp->onOpen($conn);
@ -155,7 +155,7 @@ class WampServerTest extends \PHPUnit_Framework_TestCase {
$this->_comp->onOpen($conn); $this->_comp->onOpen($conn);
$this->_comp->onClose($conn); $this->_comp->onClose($conn);
$class = new \ReflectionClass('\\Ratchet\\WAMP\\WampConnection'); $class = new \ReflectionClass('\\Ratchet\\Wamp\\WampConnection');
$method = $class->getMethod('getConnection'); $method = $class->getMethod('getConnection');
$method->setAccessible(true); $method->setAccessible(true);
@ -172,7 +172,7 @@ class WampServerTest extends \PHPUnit_Framework_TestCase {
$this->_comp->onOpen($conn); $this->_comp->onOpen($conn);
$this->_comp->onError($conn, $e); $this->_comp->onError($conn, $e);
$class = new \ReflectionClass('\\Ratchet\\WAMP\\WampConnection'); $class = new \ReflectionClass('\\Ratchet\\Wamp\\WampConnection');
$method = $class->getMethod('getConnection'); $method = $class->getMethod('getConnection');
$method->setAccessible(true); $method->setAccessible(true);
@ -196,7 +196,7 @@ class WampServerTest extends \PHPUnit_Framework_TestCase {
} }
public function testMessageMustBeJson() { public function testMessageMustBeJson() {
$this->setExpectedException('\\Ratchet\\WAMP\\JsonException'); $this->setExpectedException('\\Ratchet\\Wamp\\JsonException');
$conn = new Connection; $conn = new Connection;