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