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