protected function stopRouter() { $this->assertInstanceOf('Thruway\\Peer\\Router', $this->router); $this->assertInstanceOf('React\\EventLoop\\Timer\\Timer', $this->currentTimer); $this->currentTimer->cancel(); $this->router->stop(false); }