/** * Test: Format * * @access public * @return void */ public function testFormat() { $hour = new Hour(new \DateTime(date('Y-m-d H:00'))); $this->assertSame(date('Y-m-d H:00'), $hour->format('Y-m-d H:i')); }
public function testFormat() { $hour = new Hour(new \DateTime(date('Y-m-d H:00')), $this->prophesize(FactoryInterface::class)->reveal()); $this->assertSame(date('Y-m-d H:00'), $hour->format('Y-m-d H:i')); }