Exemple #1
0
 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());
 }
Exemple #2
0
 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());
 }
Exemple #3
0
 public function testDisconnectCallsQuit()
 {
     $this->connection->disconnect();
     $this->assertTrue($this->connection->calledQuit);
 }