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;