Exemple #1
0
 /**
  * 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'));
 }
Exemple #2
0
 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'));
 }