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