public function testGetBccs() { $email = new Email(); $email->setBcc('*****@*****.**'); $this->assertEquals(array('*****@*****.**'), $email->getBccs()); $email2 = new Email(); $email2->setBcc('lex@lexik.fr;'); $this->assertEquals(array('*****@*****.**'), $email2->getBccs()); $email->setBcc('lex@lexik.fr; lex2@lexik.fr'); $bccs = $email->getBccs(); $this->assertEquals(2, count($bccs)); $this->assertEquals('*****@*****.**', $bccs[0]); $this->assertEquals('*****@*****.**', $bccs[1]); $email->setBcc(null); $this->assertEquals(array(), $email->getBccs()); }