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