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