/** * @expectedException InvalidArgumentException * @expectedExceptionMessage '2015-02-02 03:10' is not a valid hourly precision string */ public function testWrongHourlyPrecisionFormatThrowsException() { UTCDateTime::fromHourlyPrecision('2015-02-02 03:10'); }