/** * @covers Marando\AstroDate\AstroDate::untilMidnight */ public function testUntilMidnight() { $dt = new AstroDate(2015, 1, 10, 12, 43, 17); $this->assertEquals(40603, $dt->untilMidnight()->sec); }