Exemplo n.º 1
0
 public function testAddCcWithName()
 {
     $email = new Email();
     $email->addCc('*****@*****.**', 'Person One');
     $this->assertEquals(array('*****@*****.**'), $email->getCcs());
     $this->assertEquals(array('Person One'), $email->getCcNames());
     $email->addCc('*****@*****.**');
     $this->assertEquals(array('*****@*****.**', '*****@*****.**'), $email->getCcs());
     $this->assertEquals(array('Person One'), $email->getCcNames());
 }