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:
Chris Boden 2012-02-04 12:37:53 -05:00
parent 99ed6f0805
commit 01804dac6c
2 changed files with 7 additions and 7 deletions

View File

@ -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"

View File

@ -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