Example #1
0
 /**
  * Test for addTimestamp
  */
 public function testAddTimestamp2()
 {
     try {
         $locale = new Zend_Locale('de_AT');
         $date = new Zend_Date(0, null, $locale);
         $result = $date->addTimestamp('notimestamp');
         $this->fail("exception expected");
     } catch (Zend_Date_Exception $e) {
         // success
     }
 }
Example #2
0
 /**
  * Test for addTimestamp
  */
 public function testAddTimestamp2()
 {
     try {
         $locale = new Zend_Locale('de_AT');
         $date = new Zend_Date(0, false, $locale);
         $result = $date->addTimestamp('notimestamp');
         $this->Fail();
     } catch (Zend_Date_Exception $e) {
         // success
     }
 }