Exemplo n.º 1
0
 public function testAddBcc()
 {
     $email = new Email();
     $email->addBcc('foo');
     $email->addBcc('raz');
     $this->assertEquals(2, count($email->getBccs()));
     $bcc = $email->getBccs();
     $this->assertEquals('foo', $bcc[0]);
     $this->assertEquals('raz', $bcc[1]);
     $email->removeBcc('raz');
     $this->assertEquals(1, count($email->getBccs()));
     $bcc = $email->getBccs();
     $this->assertEquals('foo', $bcc[0]);
 }