Example #1
0
 /**
  * @covers ::getCurrentHour
  */
 public function test_getCurrentHour()
 {
     // When
     $hour = (int) date('G');
     // Then
     $this->assertNotSame($hour, DateTime::getCurrentHour(true));
     $this->assertSame($hour, DateTime::getCurrentHour());
 }