/** * @return ConnectionManager */ public function getConnectionManager() { if ($this->connectionManager) { return $this->connectionManager; } $this->connectionManager = new ConnectionManager(); $this->connectionManager->setSignalHandler($this->getSignalHandler()); return $this->connectionManager; }
public function setUp() { $this->connectionManager = new ConnectionManager(); $this->connectionManager->setSignalHandler($this->getMock('\\Thruster\\Components\\PosixSignalHandler\\SignalHandler')); }