/** * @covers Marando\AstroCoord\Frame::FK4 */ public function testFK4() { $equinoxes = [Epoch::B1950(), Epoch::B1900(), Epoch::B(1948), Epoch::dt(AstroDate::now())]; foreach ($equinoxes as $e) { $equinox = $e; $fk4 = Frame::FK4($e); $this->assertEquals('FK4', $fk4->name); $this->assertEquals($equinox, $fk4->equinox); } }
/** * Converts this instance to an Epoch * @return Epoch */ public function toEpoch() { return Epoch::dt($this->copy()); }