Exemplo n.º 1
0
 public function testAddSecondPassingArg()
 {
     $this->assertSame(2, Date::createFromTime(0)->addSecond(2)->getSecond());
 }
Exemplo n.º 2
0
 public function testCreateFromTimeWithTimeZoneString()
 {
     $d = Date::createFromTime(12, 0, 0, 'Europe/London');
     $this->assertDate($d, Date::now()->getYear(), Date::now()->getMonth(), Date::now()->getDay(), 12, 0, 0);
     $this->assertSame('Europe/London', $d->getTimezoneName());
 }