/** * 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 } }
/** * 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 } }