Attempted Fixes
Attempting to change some things to pass on TravisCI...even though I'm not getting any unit test failures.
This commit is contained in:
parent
99ed6f0805
commit
01804dac6c
@ -3,10 +3,8 @@
|
|||||||
, "type": "library"
|
, "type": "library"
|
||||||
, "description": "PHP WebSocket server component library"
|
, "description": "PHP WebSocket server component library"
|
||||||
, "keywords": ["WebSocket"]
|
, "keywords": ["WebSocket"]
|
||||||
, "homepage": "http://socketo.me"
|
|
||||||
, "repository": "https://github.com/cboden/Ratchet"
|
, "repository": "https://github.com/cboden/Ratchet"
|
||||||
, "license": "MIT"
|
, "license": "MIT"
|
||||||
, "version": "0.1"
|
|
||||||
, "authors": [
|
, "authors": [
|
||||||
{
|
{
|
||||||
"name": "Chris Boden"
|
"name": "Chris Boden"
|
||||||
|
@ -13,9 +13,9 @@ class IOServerComponentTest extends \PHPUnit_Framework_TestCase {
|
|||||||
protected $_decorated;
|
protected $_decorated;
|
||||||
|
|
||||||
public function setUp() {
|
public function setUp() {
|
||||||
$this->_catalyst = new Socket;
|
$this->_catalyst = new Socket;
|
||||||
$this->_decorated = new TestApp;
|
$this->_decorated = new TestApp;
|
||||||
$this->_server = new IOServerComponent($this->_decorated);
|
$this->_server = new IOServerComponent($this->_decorated);
|
||||||
|
|
||||||
$ref = new \ReflectionClass('\\Ratchet\\Component\\Server\\IOServerComponent');
|
$ref = new \ReflectionClass('\\Ratchet\\Component\\Server\\IOServerComponent');
|
||||||
$prop = $ref->getProperty('_run');
|
$prop = $ref->getProperty('_run');
|
||||||
@ -37,7 +37,8 @@ class IOServerComponentTest extends \PHPUnit_Framework_TestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function testOnOpenPassesClonedSocket() {
|
public function testOnOpenPassesClonedSocket() {
|
||||||
$this->_server->run($this->_catalyst);
|
$master = $this->_catalyst;
|
||||||
|
$this->_server->run($master);
|
||||||
$master = $this->getMasterConnection();
|
$master = $this->getMasterConnection();
|
||||||
|
|
||||||
$this->_server->onOpen($master);
|
$this->_server->onOpen($master);
|
||||||
@ -47,7 +48,8 @@ class IOServerComponentTest extends \PHPUnit_Framework_TestCase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function testOnMessageSendsToApp() {
|
public function testOnMessageSendsToApp() {
|
||||||
$this->_server->run($this->_catalyst);
|
$master = $this->_catalyst;
|
||||||
|
$this->_server->run($master);
|
||||||
$master = $this->getMasterConnection();
|
$master = $this->getMasterConnection();
|
||||||
|
|
||||||
// todo, make FakeSocket better, set data in select, recv to pass data when called, then do this check
|
// todo, make FakeSocket better, set data in select, recv to pass data when called, then do this check
|
||||||
|
Loading…
Reference in New Issue
Block a user