Ejemplo n.º 1
0
 public function testFromDefaultValuesWorks()
 {
     $message = new Message();
     $this->assertEquals(['*****@*****.**' => 'from'], $message->getFrom(['*****@*****.**' => 'from']), "Simple default email address with display name as string does not work for getFrom().");
     $this->assertEquals(['*****@*****.**' => null], $message->getFrom('*****@*****.**'), "Simple default email address as string does not work for getFrom().");
     $this->assertEquals(['*****@*****.**' => null, '*****@*****.**' => null], $message->getFrom(['*****@*****.**', '*****@*****.**']), "Both of the two default emails should have been set for getFrom().");
     $this->assertEquals(['*****@*****.**' => null], $message->getFrom(['*****@*****.**']), "Simple array with one default email address should work with getFrom().");
 }