public function testFormat() { $day = new Day(new \DateTime('00:00:00'), $this->prophesize(FactoryInterface::class)->reveal()); $this->assertSame(date('Y-m-d'), $day->format('Y-m-d')); }
public function testFormat() { $day = new Day(new \DateTime()); $this->assertSame(date('Y-m-d'), $day->format('Y-m-d')); }