From 0d592ae875f49ad204ad74f0c5b27ba3819a5ff6 Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Tue, 8 May 2012 23:19:28 -0400 Subject: [PATCH] Case sensitiviy fixes --- tests/Ratchet/Tests/Mock/WAMPComponent.php | 2 +- tests/Ratchet/Tests/Wamp/WampServerTest.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Ratchet/Tests/Mock/WAMPComponent.php b/tests/Ratchet/Tests/Mock/WAMPComponent.php index 1b59f30..5e4bdc3 100644 --- a/tests/Ratchet/Tests/Mock/WAMPComponent.php +++ b/tests/Ratchet/Tests/Mock/WAMPComponent.php @@ -3,7 +3,7 @@ namespace Ratchet\Tests\Mock; use Ratchet\Wamp\WampServerInterface; use Ratchet\ConnectionInterface; -class WAMPComponent implements WampServerInterface { +class WampComponent implements WampServerInterface { public $last = array(); public function onCall(ConnectionInterface $conn, $id, $procURI, array $params) { diff --git a/tests/Ratchet/Tests/Wamp/WampServerTest.php b/tests/Ratchet/Tests/Wamp/WampServerTest.php index fb68862..f829859 100644 --- a/tests/Ratchet/Tests/Wamp/WampServerTest.php +++ b/tests/Ratchet/Tests/Wamp/WampServerTest.php @@ -38,7 +38,7 @@ class WampServerTest extends \PHPUnit_Framework_TestCase { * @dataProvider invalidMessageProvider */ public function testInvalidMessages($type) { - $this->setExpectedException('\\Ratchet\\WAMP\\Exception'); + $this->setExpectedException('\\Ratchet\\Wamp\\Exception'); $conn = $this->newConn(); $this->_comp->onOpen($conn); @@ -155,7 +155,7 @@ class WampServerTest extends \PHPUnit_Framework_TestCase { $this->_comp->onOpen($conn); $this->_comp->onClose($conn); - $class = new \ReflectionClass('\\Ratchet\\WAMP\\WampConnection'); + $class = new \ReflectionClass('\\Ratchet\\Wamp\\WampConnection'); $method = $class->getMethod('getConnection'); $method->setAccessible(true); @@ -172,7 +172,7 @@ class WampServerTest extends \PHPUnit_Framework_TestCase { $this->_comp->onOpen($conn); $this->_comp->onError($conn, $e); - $class = new \ReflectionClass('\\Ratchet\\WAMP\\WampConnection'); + $class = new \ReflectionClass('\\Ratchet\\Wamp\\WampConnection'); $method = $class->getMethod('getConnection'); $method->setAccessible(true); @@ -196,7 +196,7 @@ class WampServerTest extends \PHPUnit_Framework_TestCase { } public function testMessageMustBeJson() { - $this->setExpectedException('\\Ratchet\\WAMP\\JsonException'); + $this->setExpectedException('\\Ratchet\\Wamp\\JsonException'); $conn = new Connection;