Exemplo n.º 1
0
 /**
  * @dataProvider providerNow
  *
  * @param integer $second The second to set the clock to.
  * @param integer $nano   The nanosecond adjustment to the clock.
  * @param integer $offset The time-zone offset to get the time at.
  * @param integer $h      The expected hour.
  * @param integer $m      The expected minute.
  * @param integer $s      The expected second.
  * @param integer $n      The expected nano.
  */
 public function testNow($second, $nano, $offset, $h, $m, $s, $n)
 {
     $this->setClockTime($second, $nano);
     $timeZone = TimeZoneOffset::ofTotalSeconds($offset);
     $this->assertLocalTimeIs($h, $m, $s, $n, LocalTime::now($timeZone));
 }