public function testSetAuth()
 {
     $result = $this->smtp->setAuth('none', 'none');
     $this->assertEquals('none', $this->testHelper->getPropertyValue($this->smtp, 'username'));
     $this->assertEquals('none', $this->testHelper->getPropertyValue($this->smtp, 'password'));
     $this->assertSame($this->smtp, $result);
 }
Пример #2
0
 /**
  * auth with server
  * @param string $username
  * @param string $password
  * @return $this
  */
 public function setAuth($username, $password)
 {
     $this->smtp->setAuth($username, $password);
     return $this;
 }