[Tests] Restructured test filesystem layout

This commit is contained in:
Chris Boden 2013-06-16 10:12:48 -04:00
parent e7541fdfcf
commit a876770cda
46 changed files with 81 additions and 78 deletions

View File

@ -8,21 +8,21 @@ cover:
phpunit --coverage-text --coverage-html=reports/coverage phpunit --coverage-text --coverage-html=reports/coverage
abtests: abtests:
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php 8001 & ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver-libevent.php 8001 &
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-stream.php 8002 & ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver-stream.php 8002 &
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-noutf8.php 8003 & ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver-noutf8.php 8003 &
wstest -m testeeserver -w ws://localhost:8000 & wstest -m testeeserver -w ws://localhost:8000 &
wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-all.json wstest -m fuzzingclient -s tests/autobahn/fuzzingclient-all.json
killall php wstest killall php wstest
abtest: abtest:
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-stream.php & ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver-stream.php &
wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-quick.json wstest -m fuzzingclient -s tests/autobahn/fuzzingclient-quick.json
killall php killall php
profile: profile:
php -d 'xdebug.profiler_enable=1' tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php & php -d 'xdebug.profiler_enable=1' tests/autobahn/bin/fuzzingserver-libevent.php &
wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-profile.json wstest -m fuzzingclient -s tests/autobahn/fuzzingclient-profile.json
killall php killall php
apidocs: apidocs:

View File

@ -20,8 +20,7 @@
} }
, "autoload": { , "autoload": {
"psr-0": { "psr-0": {
"Ratchet\\Tests": "tests" "Ratchet": "src"
, "Ratchet": "src"
} }
} }
, "require": { , "require": {

10
composer.lock generated
View File

@ -3,7 +3,7 @@
"This file locks the dependencies of your project to a known state", "This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
], ],
"hash": "d5a238bcdccc33fab13dd3c65b663beb", "hash": "f5d2fe5b143f2c5d2e8f674dd2f6bc16",
"packages": [ "packages": [
{ {
"name": "evenement/evenement", "name": "evenement/evenement",
@ -429,17 +429,17 @@
}, },
{ {
"name": "symfony/http-foundation", "name": "symfony/http-foundation",
"version": "v2.3.0", "version": "v2.3.1",
"target-dir": "Symfony/Component/HttpFoundation", "target-dir": "Symfony/Component/HttpFoundation",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/HttpFoundation.git", "url": "https://github.com/symfony/HttpFoundation.git",
"reference": "v2.3.0-RC1" "reference": "v2.3.1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/HttpFoundation/zipball/v2.3.0-RC1", "url": "https://api.github.com/repos/symfony/HttpFoundation/zipball/v2.3.1",
"reference": "v2.3.0-RC1", "reference": "v2.3.1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {

View File

@ -2,7 +2,7 @@
<phpunit <phpunit
forceCoversAnnotation="true" forceCoversAnnotation="true"
mapTestClassNameToCoveredClassName="true" mapTestClassNameToCoveredClassName="true"
bootstrap="vendor/autoload.php" bootstrap="tests/bootstrap.php"
colors="true" colors="true"
backupGlobals="false" backupGlobals="false"
backupStaticAttributes="false" backupStaticAttributes="false"
@ -11,15 +11,14 @@
> >
<testsuites> <testsuites>
<testsuite name="Ratchet Test Suite"> <testsuite name="unit">
<directory>./tests/Ratchet/</directory> <directory>./tests/unit/</directory>
</testsuite> </testsuite>
</testsuites> </testsuites>
<filter> <filter>
<blacklist> <whitelist>
<directory>./tests/</directory> <directory>./src/</directory>
<directory>./vendor/</directory> </whitelist>
</blacklist>
</filter> </filter>
</phpunit> </phpunit>

5
tests/bootstrap.php Normal file
View File

@ -0,0 +1,5 @@
<?php
$loader = require __DIR__ . '/../vendor/autoload.php';
$loader->add('Ratchet', __DIR__ . '/helpers');
$loader->register();

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests; namespace Ratchet;
abstract class AbstractMessageComponentTestCase extends \PHPUnit_Framework_TestCase { abstract class AbstractMessageComponentTestCase extends \PHPUnit_Framework_TestCase {
protected $_app; protected $_app;

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Mock; namespace Ratchet\Mock;
use Ratchet\MessageComponentInterface; use Ratchet\MessageComponentInterface;
use Ratchet\WebSocket\WsServerInterface; use Ratchet\WebSocket\WsServerInterface;
use Ratchet\ConnectionInterface; use Ratchet\ConnectionInterface;

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Mock; namespace Ratchet\Mock;
use Ratchet\ConnectionInterface; use Ratchet\ConnectionInterface;
class Connection implements ConnectionInterface { class Connection implements ConnectionInterface {

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Mock; namespace Ratchet\Mock;
use Ratchet\AbstractConnectionDecorator; use Ratchet\AbstractConnectionDecorator;
class ConnectionDecorator extends AbstractConnectionDecorator { class ConnectionDecorator extends AbstractConnectionDecorator {

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Mock; namespace Ratchet\Mock;
use Ratchet\Wamp\WampServerInterface; use Ratchet\Wamp\WampServerInterface;
use Ratchet\WebSocket\WsServerInterface; use Ratchet\WebSocket\WsServerInterface;
use Ratchet\ConnectionInterface; use Ratchet\ConnectionInterface;

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Mock; namespace Ratchet;
use Ratchet\ConnectionInterface; use Ratchet\ConnectionInterface;
use Ratchet\MessageComponentInterface; use Ratchet\MessageComponentInterface;
use Ratchet\WebSocket\WsServerInterface; use Ratchet\WebSocket\WsServerInterface;

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Wamp\Stub; namespace Ratchet\Wamp\Stub;
use Ratchet\WebSocket\WsServerInterface; use Ratchet\WebSocket\WsServerInterface;
use Ratchet\Wamp\WampServerInterface; use Ratchet\Wamp\WampServerInterface;

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\WebSocket\Stub; namespace Ratchet\WebSocket\Stub;
use Ratchet\MessageComponentInterface; use Ratchet\MessageComponentInterface;
use Ratchet\WebSocket\WsServerInterface; use Ratchet\WebSocket\WsServerInterface;

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Ratchet\Tests; namespace Ratchet;
use Ratchet\Tests\Mock\ConnectionDecorator; use Ratchet\Mock\ConnectionDecorator;
/** /**
* @covers Ratchet\AbstractConnectionDecorator * @covers Ratchet\AbstractConnectionDecorator

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Http\Guzzle\Http\Message; namespace Ratchet\Http\Guzzle\Http\Message;
use Ratchet\Http\Guzzle\Http\Message\RequestFactory; use Ratchet\Http\Guzzle\Http\Message\RequestFactory;
/** /**

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Http; namespace Ratchet\Http;
use Ratchet\Http\HttpRequestParser; use Ratchet\Http\HttpRequestParser;
/** /**

View File

@ -1,6 +1,6 @@
<?php <?php
namespace Ratchet\Tests\Http; namespace Ratchet\Http;
use Ratchet\Tests\AbstractMessageComponentTestCase; use Ratchet\AbstractMessageComponentTestCase;
/** /**
* @covers Ratchet\Http\HttpServer * @covers Ratchet\Http\HttpServer

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Http; namespace Ratchet\Http;
use Ratchet\Http\Router; use Ratchet\Http\Router;
use Symfony\Component\Routing\Exception\ResourceNotFoundException; use Symfony\Component\Routing\Exception\ResourceNotFoundException;

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Server; namespace Ratchet\Server;
use Ratchet\Server\EchoServer; use Ratchet\Server\EchoServer;
class EchoServerTest extends \PHPUnit_Framework_TestCase { class EchoServerTest extends \PHPUnit_Framework_TestCase {

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Application\Server; namespace Ratchet\Application\Server;
use Ratchet\Server\FlashPolicy; use Ratchet\Server\FlashPolicy;
/** /**

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Application\Server; namespace Ratchet\Application\Server;
use Ratchet\Server\IoConnection; use Ratchet\Server\IoConnection;
/** /**

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Server; namespace Ratchet\Server;
use Ratchet\Server\IoServer; use Ratchet\Server\IoServer;
use React\EventLoop\StreamSelectLoop; use React\EventLoop\StreamSelectLoop;
use React\Socket\Server; use React\Socket\Server;

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Server; namespace Ratchet\Server;
use Ratchet\Server\IpBlackList; use Ratchet\Server\IpBlackList;
/** /**

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Session\Serialize; namespace Ratchet\Session\Serialize;
use Ratchet\Session\Serialize\PhpHandler; use Ratchet\Session\Serialize\PhpHandler;
/** /**

View File

@ -1,8 +1,8 @@
<?php <?php
namespace Ratchet\Tests\Session; namespace Ratchet\Session;
use Ratchet\Tests\AbstractMessageComponentTestCase; use Ratchet\AbstractMessageComponentTestCase;
use Ratchet\Session\SessionProvider; use Ratchet\Session\SessionProvider;
use Ratchet\Tests\Mock\MemorySessionHandler; use Ratchet\Mock\MemorySessionHandler;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler; use Symfony\Component\HttpFoundation\Session\Storage\Handler\PdoSessionHandler;
use Symfony\Component\HttpFoundation\Session\Storage\Handler\NullSessionHandler; use Symfony\Component\HttpFoundation\Session\Storage\Handler\NullSessionHandler;
use Guzzle\Http\Message\Request; use Guzzle\Http\Message\Request;
@ -31,7 +31,7 @@ class SessionProviderTest extends AbstractMessageComponentTestCase {
} }
public function getDecoratorClassString() { public function getDecoratorClassString() {
return '\Ratchet\Tests\Mock\NullComponent'; return '\Ratchet\NullComponent';
} }
public function getComponentClassString() { public function getComponentClassString() {
@ -119,7 +119,7 @@ class SessionProviderTest extends AbstractMessageComponentTestCase {
} }
public function testGetSubProtocolsGetFromApp() { public function testGetSubProtocolsGetFromApp() {
$mock = $this->getMock('Ratchet\\Tests\\WebSocket\\Stub\\WsMessageComponentInterface'); $mock = $this->getMock('Ratchet\WebSocket\Stub\WsMessageComponentInterface');
$mock->expects($this->once())->method('getSubProtocols')->will($this->returnValue(array('hello', 'world'))); $mock->expects($this->once())->method('getSubProtocols')->will($this->returnValue(array('hello', 'world')));
$comp = new SessionProvider($mock, new NullSessionHandler); $comp = new SessionProvider($mock, new NullSessionHandler);

View File

@ -1,9 +1,9 @@
<?php <?php
namespace Ratchet\Tests\Wamp; namespace Ratchet\Wamp;
use Ratchet\Wamp\ServerProtocol; use Ratchet\Wamp\ServerProtocol;
use Ratchet\Wamp\WampConnection; use Ratchet\Wamp\WampConnection;
use Ratchet\Tests\Mock\Connection; use Ratchet\Mock\Connection;
use Ratchet\Tests\Mock\WampComponent as TestComponent; use Ratchet\Mock\WampComponent as TestComponent;
/** /**
* @covers Ratchet\Wamp\ServerProtocol * @covers Ratchet\Wamp\ServerProtocol

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Wamp; namespace Ratchet\Wamp;
use Ratchet\Wamp\TopicManager; use Ratchet\Wamp\TopicManager;
/** /**
@ -20,7 +20,7 @@ class TopicManagerTest extends \PHPUnit_Framework_TestCase {
public function setUp() { public function setUp() {
$this->conn = $this->getMock('\Ratchet\ConnectionInterface'); $this->conn = $this->getMock('\Ratchet\ConnectionInterface');
$this->mock = $this->getMock('\Ratchet\Wamp\\WampServerInterface'); $this->mock = $this->getMock('\Ratchet\Wamp\WampServerInterface');
$this->mngr = new TopicManager($this->mock); $this->mngr = new TopicManager($this->mock);
$this->conn->WAMP = new \StdClass; $this->conn->WAMP = new \StdClass;
@ -28,19 +28,19 @@ class TopicManagerTest extends \PHPUnit_Framework_TestCase {
} }
public function testGetTopicReturnsTopicObject() { public function testGetTopicReturnsTopicObject() {
$class = new \ReflectionClass('Ratchet\\Wamp\\TopicManager'); $class = new \ReflectionClass('Ratchet\Wamp\TopicManager');
$method = $class->getMethod('getTopic'); $method = $class->getMethod('getTopic');
$method->setAccessible(true); $method->setAccessible(true);
$topic = $method->invokeArgs($this->mngr, array('The Topic')); $topic = $method->invokeArgs($this->mngr, array('The Topic'));
$this->assertInstanceOf('Ratchet\\Wamp\\Topic', $topic); $this->assertInstanceOf('Ratchet\Wamp\Topic', $topic);
} }
public function testGetTopicCreatesTopicWithSameName() { public function testGetTopicCreatesTopicWithSameName() {
$name = 'The Topic'; $name = 'The Topic';
$class = new \ReflectionClass('Ratchet\\Wamp\\TopicManager'); $class = new \ReflectionClass('Ratchet\Wamp\TopicManager');
$method = $class->getMethod('getTopic'); $method = $class->getMethod('getTopic');
$method->setAccessible(true); $method->setAccessible(true);
@ -50,7 +50,7 @@ class TopicManagerTest extends \PHPUnit_Framework_TestCase {
} }
public function testGetTopicReturnsSameObject() { public function testGetTopicReturnsSameObject() {
$class = new \ReflectionClass('Ratchet\\Wamp\\TopicManager'); $class = new \ReflectionClass('Ratchet\Wamp\TopicManager');
$method = $class->getMethod('getTopic'); $method = $class->getMethod('getTopic');
$method->setAccessible(true); $method->setAccessible(true);
@ -71,7 +71,7 @@ class TopicManagerTest extends \PHPUnit_Framework_TestCase {
$this->mock->expects($this->once())->method('onCall')->with( $this->mock->expects($this->once())->method('onCall')->with(
$this->conn $this->conn
, $id , $id
, $this->isInstanceOf('Ratchet\\Wamp\\Topic') , $this->isInstanceOf('Ratchet\Wamp\Topic')
, array() , array()
); );
@ -80,7 +80,7 @@ class TopicManagerTest extends \PHPUnit_Framework_TestCase {
public function testOnSubscribeCreatesTopicObject() { public function testOnSubscribeCreatesTopicObject() {
$this->mock->expects($this->once())->method('onSubscribe')->with( $this->mock->expects($this->once())->method('onSubscribe')->with(
$this->conn, $this->isInstanceOf('Ratchet\\Wamp\\Topic') $this->conn, $this->isInstanceOf('Ratchet\Wamp\Topic')
); );
$this->mngr->onSubscribe($this->conn, 'new topic'); $this->mngr->onSubscribe($this->conn, 'new topic');
@ -89,7 +89,7 @@ class TopicManagerTest extends \PHPUnit_Framework_TestCase {
public function testTopicIsInConnectionOnSubscribe() { public function testTopicIsInConnectionOnSubscribe() {
$name = 'New Topic'; $name = 'New Topic';
$class = new \ReflectionClass('Ratchet\\Wamp\\TopicManager'); $class = new \ReflectionClass('Ratchet\Wamp\TopicManager');
$method = $class->getMethod('getTopic'); $method = $class->getMethod('getTopic');
$method->setAccessible(true); $method->setAccessible(true);
@ -110,7 +110,7 @@ class TopicManagerTest extends \PHPUnit_Framework_TestCase {
public function testUnsubscribeEvent() { public function testUnsubscribeEvent() {
$name = 'in and out'; $name = 'in and out';
$this->mock->expects($this->once())->method('onUnsubscribe')->with( $this->mock->expects($this->once())->method('onUnsubscribe')->with(
$this->conn, $this->isInstanceOf('Ratchet\\Wamp\\Topic') $this->conn, $this->isInstanceOf('Ratchet\Wamp\Topic')
); );
$this->mngr->onSubscribe($this->conn, $name); $this->mngr->onSubscribe($this->conn, $name);
@ -129,7 +129,7 @@ class TopicManagerTest extends \PHPUnit_Framework_TestCase {
public function testUnsubscribeRemovesTopicFromConnection() { public function testUnsubscribeRemovesTopicFromConnection() {
$name = 'Bye Bye Topic'; $name = 'Bye Bye Topic';
$class = new \ReflectionClass('Ratchet\\Wamp\\TopicManager'); $class = new \ReflectionClass('Ratchet\Wamp\TopicManager');
$method = $class->getMethod('getTopic'); $method = $class->getMethod('getTopic');
$method->setAccessible(true); $method->setAccessible(true);
@ -146,7 +146,7 @@ class TopicManagerTest extends \PHPUnit_Framework_TestCase {
$this->mock->expects($this->once())->method('onPublish')->with( $this->mock->expects($this->once())->method('onPublish')->with(
$this->conn $this->conn
, $this->isInstanceOf('Ratchet\\Wamp\\Topic') , $this->isInstanceOf('Ratchet\Wamp\Topic')
, $msg , $msg
, $this->isType('array') , $this->isType('array')
, $this->isType('array') , $this->isType('array')
@ -163,7 +163,7 @@ class TopicManagerTest extends \PHPUnit_Framework_TestCase {
public function testConnIsRemovedFromTopicOnClose() { public function testConnIsRemovedFromTopicOnClose() {
$name = 'State testing'; $name = 'State testing';
$class = new \ReflectionClass('Ratchet\\Wamp\\TopicManager'); $class = new \ReflectionClass('Ratchet\Wamp\TopicManager');
$method = $class->getMethod('getTopic'); $method = $class->getMethod('getTopic');
$method->setAccessible(true); $method->setAccessible(true);
@ -188,7 +188,7 @@ class TopicManagerTest extends \PHPUnit_Framework_TestCase {
public function testGetSubProtocolsBubbles() { public function testGetSubProtocolsBubbles() {
$subs = array('hello', 'world'); $subs = array('hello', 'world');
$app = $this->getMock('Ratchet\\Tests\\Wamp\\Stub\\WsWampServerInterface'); $app = $this->getMock('Ratchet\Wamp\Stub\WsWampServerInterface');
$app->expects($this->once())->method('getSubProtocols')->will($this->returnValue($subs)); $app->expects($this->once())->method('getSubProtocols')->will($this->returnValue($subs));
$mngr = new TopicManager($app); $mngr = new TopicManager($app);

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Wamp; namespace Ratchet\Wamp;
use Ratchet\Wamp\Topic; use Ratchet\Wamp\Topic;
use Ratchet\Wamp\WampConnection; use Ratchet\Wamp\WampConnection;

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\Wamp; namespace Ratchet\Wamp;
use Ratchet\Wamp\WampConnection; use Ratchet\Wamp\WampConnection;
/** /**

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Ratchet\Tests\Wamp; namespace Ratchet\Wamp;
use Ratchet\Wamp\WampServer; use Ratchet\Wamp\WampServer;
use Ratchet\Tests\AbstractMessageComponentTestCase; use Ratchet\AbstractMessageComponentTestCase;
/** /**
* @covers Ratchet\Wamp\WampServer * @covers Ratchet\Wamp\WampServer

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\WebSocket\Version; namespace Ratchet\WebSocket\Version;
use Ratchet\WebSocket\Version\Hixie76; use Ratchet\WebSocket\Version\Hixie76;
use Ratchet\Http\HttpServer; use Ratchet\Http\HttpServer;
use Ratchet\WebSocket\WsServer; use Ratchet\WebSocket\WsServer;

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\WebSocket\Version; namespace Ratchet\WebSocket\Version;
use Ratchet\WebSocket\Version\HyBi10; use Ratchet\WebSocket\Version\HyBi10;
use Ratchet\WebSocket\Version\RFC6455\Frame; use Ratchet\WebSocket\Version\RFC6455\Frame;

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\WebSocket\Version\RFC6455; namespace Ratchet\WebSocket\Version\RFC6455;
use Ratchet\WebSocket\Version\RFC6455\Frame; use Ratchet\WebSocket\Version\RFC6455\Frame;
/** /**

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\WebSocket\Version\RFC6455; namespace Ratchet\WebSocket\Version\RFC6455;
use Ratchet\WebSocket\Version\RFC6455\HandshakeVerifier; use Ratchet\WebSocket\Version\RFC6455\HandshakeVerifier;
/** /**

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\WebSocket\Version\RFC6455\Message; namespace Ratchet\WebSocket\Version\RFC6455\Message;
use Ratchet\WebSocket\Version\RFC6455\Message; use Ratchet\WebSocket\Version\RFC6455\Message;
use Ratchet\WebSocket\Version\RFC6455\Frame; use Ratchet\WebSocket\Version\RFC6455\Frame;

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\WebSocket\Version; namespace Ratchet\WebSocket\Version;
use Ratchet\WebSocket\Version\RFC6455; use Ratchet\WebSocket\Version\RFC6455;
use Ratchet\WebSocket\Version\RFC6455\Frame; use Ratchet\WebSocket\Version\RFC6455\Frame;
use Guzzle\Http\Message\RequestFactory; use Guzzle\Http\Message\RequestFactory;

View File

@ -1,5 +1,5 @@
<?php <?php
namespace Ratchet\Tests\WebSocket; namespace Ratchet\WebSocket;
use Ratchet\WebSocket\VersionManager; use Ratchet\WebSocket\VersionManager;
use Ratchet\WebSocket\Version\RFC6455; use Ratchet\WebSocket\Version\RFC6455;
use Ratchet\WebSocket\Version\HyBi10; use Ratchet\WebSocket\Version\HyBi10;

View File

@ -1,7 +1,7 @@
<?php <?php
namespace Ratchet\Tests\WebSocket; namespace Ratchet\WebSocket;
use Ratchet\WebSocket\WsServer; use Ratchet\WebSocket\WsServer;
use Ratchet\Tests\Mock\Component as MockComponent; use Ratchet\Mock\Component as MockComponent;
/** /**
* @covers Ratchet\WebSocket\WsServer * @covers Ratchet\WebSocket\WsServer