Add more tests

This commit is contained in:
RainLoop Team 2016-05-20 22:55:29 +03:00
parent 0f55220412
commit 990309f2d3
16 changed files with 716 additions and 5 deletions

View file

@ -287,13 +287,14 @@ class Email
/**
* @param bool $bIdn = false
* @param bool $bDkim = true
*
* @return array
*/
public function ToArray($bIdn = false)
public function ToArray($bIdn = false, $bDkim = true)
{
return array($this->sDisplayName, $this->GetEmail($bIdn), $this->sRemark,
$this->sDkimStatus, $this->sDkimValue);
return $bDkim ? array($this->sDisplayName, $this->GetEmail($bIdn), $this->sRemark, $this->sDkimStatus, $this->sDkimValue) :
array($this->sDisplayName, $this->GetEmail($bIdn), $this->sRemark);
}
/**