setDate() 공개 메소드

Sets Date-header
public setDate ( integer | string | Zend_Date $date = null ) : Zend_Mail
$date integer | string | Zend_Date
리턴 Zend_Mail Provides fluent interface
예제 #1
0
파일: MailTest.php 프로젝트: jsnshrmn/Suma
 public function testClearDate()
 {
     $mail = new Zend_Mail();
     $mail->setDate();
     $mail->clearDate();
     $this->assertFalse(isset($mock->headers['Date']));
 }
예제 #2
0
    public function testSetDateTwice()
    {
        $mail = new Zend_Mail();

        $mail->setDate();
        try {
            $mail->setDate(123456789);
            $this->fail('setting date twice should throw an exception');
        } catch (Exception $e) {
        }
    }