コード例 #1
0
ファイル: EmailTest.php プロジェクト: brash-creative/sendgrid
 public function testAddCc()
 {
     $email = new Email();
     $email->addCc('*****@*****.**');
     $email->addCc('*****@*****.**');
     $this->assertEquals(2, count($email->getCcs()));
     $cc = $email->getCcs();
     $this->assertEquals('*****@*****.**', $cc[0]);
     $this->assertEquals('*****@*****.**', $cc[1]);
     // removeCc removes all occurences of data
     $email->removeCc('*****@*****.**');
     $this->assertEquals(1, count($email->getCcs()));
     $cc = $email->getCcs();
     $this->assertEquals('*****@*****.**', $cc[0]);
 }