public function testSetTimestamp() { $a = new DateTime("2009-12-12"); $this->setExpectedException("Doctrine\Common\DateTime\ImmutableException"); $a->setTimestamp(time()); }