public function testWithMillisecondUtc() { $year = 2009; $month = 2; $day = 13; $hour = 23; $minute = 31; $second = 30; $millisecond = 250; $time = CTime::fromComponentsUtc($year, $month, $day, $hour, $minute, $second, $millisecond); $time = $time->withMillisecondUtc(750); $this->assertTrue($time->toStringUtc(CTime::PATTERN_MYSQL)->equals("2009-02-13 23:31:30") && $time->MTime() === 750); }