/** * @expectedException \AuLait\Exception\DateTimeException * @expectedExceptionCode \AuLait\Exception\DateTimeException::CODE_ILLEGAL_TIMING_FORMAT */ public function testIllegalFormat() { $dateTime = new DateTime(); $dateTime->setTiming("illegal format!"); }