Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * 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);
 }