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