/** * @depends testConnection * @param Client $client */ public function testActionSenderLogoffDisconnects(Client $client) { $sender = new ActionSender($client); $ret = $this->waitFor($sender->logoff()); /* @var $ret Response */ $this->assertFalse($client->isBusy()); //$client->on('close', $this->expectCallableOnce()); self::$loop->run(); return $client; }