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