예제 #1
0
 /**
  * Test for _getTime
  */
 public function test_getTime()
 {
     $date = new DateObjectTestHelper(Date::now());
     $time = $date->_getTime();
     $diff = abs(time() - $time);
     $this->assertTrue($diff < 2, "Zend_Date_DateObject->_getTime() returned a significantly " . "different timestamp than expected: {$diff} seconds");
 }