/** * @expectedException \Core\Exception\ImmutablePropertyException */ public function testSetGetPortals() { $portals = array(1, 2, 3); $this->snapShot->setPortals($portals); $this->assertEquals($this->snapShot->getPortals(), $portals); }