Exemplo n.º 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());
 }
Exemplo n.º 2
0
 public function testDisconnect()
 {
     $this->connection->connect();
     $this->assertTrue($this->connection->isConnected());
     $this->transport->disconnect();
     $this->assertFalse($this->connection->isConnected());
 }