예제 #1
0
파일: SmtpTest.php 프로젝트: pnaq57/zf2demo
 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());
 }
예제 #2
0
파일: SmtpTest.php 프로젝트: pnaq57/zf2demo
 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());
 }
예제 #3
0
 public function testDisconnectCallsQuit()
 {
     $this->connection->disconnect();
     $this->assertTrue($this->connection->calledQuit);
 }