/** * @test */ public function todayWorks() { $helper = new DateHelper(); $result = $helper->today(); $this->assertInstanceOf(\DateTime::class, $result); $today = new \DateTime('today'); $this->assertEquals($today->getTimestamp(), $result->getTimestamp(), 'Today should be today', 1); }