public function testSetTime() { $a = new DateTime("2009-12-12"); $this->setExpectedException("Doctrine\Common\DateTime\ImmutableException"); $a->setTime(10, 20); }