Exemplo n.º 1
0
 /**
  * @covers Marando\AstroDate\AstroDate::equinoxSpring
  */
 public function testEquinoxSpring()
 {
     $mar = [[1996, 20, 8, 4, 7], [1997, 20, 13, 55, 42], [1998, 20, 19, 55, 35], [1999, 21, 1, 46, 53], [2000, 20, 7, 36, 19], [2001, 20, 13, 31, 47], [2002, 20, 19, 17, 13], [2003, 21, 1, 0, 50], [2004, 20, 6, 49, 42], [2005, 20, 12, 34, 29]];
     foreach ($mar as $e) {
         $equinox = AstroDate::equinoxSpring($e[0]);
         $expected = new AstroDate($e[0], 3, $e[1], $e[2], $e[3], $e[4]);
         $this->assertEquals($expected->toJD(), $equinox->toJD(), $e[0], 0.001);
     }
 }