Passing Unit Test
Turned on E_STRICT and fixed resulting unit test failures
This commit is contained in:
parent
01804dac6c
commit
cb49cf06e7
2
composer.lock
generated
2
composer.lock
generated
@ -1,5 +1,5 @@
|
||||
{
|
||||
"hash": "9c9347f555af9a961102c4158e6d2ae8",
|
||||
"hash": "e898a89b9f66807dae53937fe3b089d3",
|
||||
"packages": [
|
||||
{
|
||||
"package": "guzzle",
|
||||
|
@ -90,7 +90,9 @@ class IOServerComponent implements MessageComponentInterface {
|
||||
$changed = $this->_resources;
|
||||
|
||||
try {
|
||||
$num_changed = $host->select($changed, $write = null, $except = null, null);
|
||||
$write = $except = null;
|
||||
|
||||
$num_changed = $host->select($changed, $write, $except, null);
|
||||
} catch (Exception $e) {
|
||||
// master had a problem?...what to do?
|
||||
return;
|
||||
|
@ -37,8 +37,7 @@ class IOServerComponentTest extends \PHPUnit_Framework_TestCase {
|
||||
}
|
||||
|
||||
public function testOnOpenPassesClonedSocket() {
|
||||
$master = $this->_catalyst;
|
||||
$this->_server->run($master);
|
||||
$this->_server->run($this->_catalyst);
|
||||
$master = $this->getMasterConnection();
|
||||
|
||||
$this->_server->onOpen($master);
|
||||
@ -48,8 +47,7 @@ class IOServerComponentTest extends \PHPUnit_Framework_TestCase {
|
||||
}
|
||||
|
||||
public function testOnMessageSendsToApp() {
|
||||
$master = $this->_catalyst;
|
||||
$this->_server->run($master);
|
||||
$this->_server->run($this->_catalyst);
|
||||
$master = $this->getMasterConnection();
|
||||
|
||||
// todo, make FakeSocket better, set data in select, recv to pass data when called, then do this check
|
||||
|
@ -1,3 +1,5 @@
|
||||
<?php
|
||||
|
||||
error_reporting(E_ALL | E_STRICT);
|
||||
|
||||
require_once dirname(__DIR__) . '/vendor/.composer/autoload.php';
|
Loading…
Reference in New Issue
Block a user