예제 #1
0
 public function teardown()
 {
     Date\Date::setOptions($this->_options);
 }
예제 #2
0
파일: DateTest.php 프로젝트: rikaix/zf2
 /**
  * @ZF-9085
  */
 public function testGettingMonthWhenUsingGNU()
 {
     Date::setOptions(array('format_type' => 'php'));
     $date = new Date(array('day' => 1, 'month' => 4, 'year' => 2008));
     $date2 = $date->getMonth();
     $result = $date2->toArray();
     $this->assertEquals(1970, $result['year']);
 }