public function testDisconnectResetsAuthFlag() { $this->connection->connect(); $this->connection->setSessionStatus(true); $this->connection->setAuth(true); $this->assertTrue($this->connection->getAuth()); $this->connection->disconnect(); $this->assertFalse($this->connection->getAuth()); }
public function testDisconnectSendReconnects() { $this->assertFalse($this->connection->hasSession()); $this->transport->send($this->getMessage()); $this->assertTrue($this->connection->hasSession()); $this->connection->disconnect(); $this->assertFalse($this->connection->hasSession()); $this->transport->send($this->getMessage()); $this->assertTrue($this->connection->hasSession()); }
public function testDisconnectCallsQuit() { $this->connection->disconnect(); $this->assertTrue($this->connection->calledQuit); }