Clears the default ReplyTo-address and -name from the mail
public static clearDefaultReplyTo ( ) : void | ||
Результат | void |
public function testDefaultReplyTo() { Zend_Mail::setDefaultReplyTo('*****@*****.**', 'John Doe'); $this->assertEquals(array('email' => '*****@*****.**', 'name' => 'John Doe'), Zend_Mail::getDefaultReplyTo()); Zend_Mail::clearDefaultReplyTo(); $this->assertEquals(null, Zend_Mail::getDefaultReplyTo()); Zend_Mail::setDefaultReplyTo('*****@*****.**'); $this->assertEquals(array('email' => '*****@*****.**', 'name' => null), Zend_Mail::getDefaultReplyTo()); }