Cleanup
Removed another couple unused methods
This commit is contained in:
parent
3127efc981
commit
d4d67eba44
@ -59,25 +59,6 @@ class Server implements SocketObserver, \IteratorAggregate {
|
|||||||
$this->_app = $application;
|
$this->_app = $application;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @todo Test this method
|
|
||||||
*/
|
|
||||||
public function newCommand($cmd, SocketCollection $sockets) {
|
|
||||||
$class = __NAMESPACE__ . '\\Server\\Command\\' . $cmd;
|
|
||||||
if (!class_exists($class)) {
|
|
||||||
throw new \UnexpectedValueException("Command {$cmd} not found");
|
|
||||||
}
|
|
||||||
|
|
||||||
return new $cmd($sockets);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param Logging\LoggerInterface
|
|
||||||
*/
|
|
||||||
public function setLogger(LoggerInterface $logger) {
|
|
||||||
$this->_log = $logger;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return ArrayIterator of SocketInterfaces
|
* @return ArrayIterator of SocketInterfaces
|
||||||
*/
|
*/
|
||||||
|
@ -43,12 +43,14 @@ class ServerTest extends \PHPUnit_Framework_TestCase {
|
|||||||
$this->assertSame($logger, $this->getPrivateProperty($server, '_log'));
|
$this->assertSame($logger, $this->getPrivateProperty($server, '_log'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
public function testLoggerIsSetInMethod() {
|
public function testLoggerIsSetInMethod() {
|
||||||
$logger = new ArrayLogger;
|
$logger = new ArrayLogger;
|
||||||
$this->_server->setLogger($logger);
|
$this->_server->setLogger($logger);
|
||||||
|
|
||||||
$this->assertSame($logger, $this->getPrivateProperty($this->_server, '_log'));
|
$this->assertSame($logger, $this->getPrivateProperty($this->_server, '_log'));
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
public function testGetMasterReturnsCatalyst() {
|
public function testGetMasterReturnsCatalyst() {
|
||||||
|
Loading…
Reference in New Issue
Block a user