public function testCreateFromTimeWithTimeZoneString() { $d = IntlCarbon::createFromTime(12, 0, 0, 'Europe/London'); $this->assertIntlCarbon($d, IntlCarbon::now()->year, IntlCarbon::now()->month, IntlCarbon::now()->day, 12, 0, 0); $this->assertSame('Europe/London', $d->tzName); }
public function testAddSecondPassingArg() { $this->assertSame(2, IntlCarbon::createFromTime(0)->addSecond(2)->second); }