Exemplo n.º 1
0
 public function testToWebFormatWithSmtpapiToAndBcc()
 {
     $email = new Email();
     $email->addSmtpapiTo('*****@*****.**');
     $email->addBcc('*****@*****.**');
     $json = $email->toWebFormat();
     $this->assertEquals($json['bcc'], array('*****@*****.**'));
     $this->assertEquals($json["x-smtpapi"], '{"to":["*****@*****.**"]}');
 }