Esempio n. 1
0
 public function testSetFrom()
 {
     $email = new Email();
     $email->setFrom("*****@*****.**");
     $email->setFromName("John Doe");
     $this->assertEquals("*****@*****.**", $email->getFrom());
     $this->assertEquals(array("*****@*****.**" => "John Doe"), $email->getFrom(true));
 }