/** * @expectedException \Core\Exception\ImmutablePropertyException */ public function testSetGetDatePublishEnd() { $datePublishEnd = new \DateTime("2016-01-02"); $this->snapShot->setDatePublishEnd($datePublishEnd); $this->assertEquals($this->snapShot->datePublishEnd, $datePublishEnd); }