public function testSetGetTemplateValues() { $templateValues = new TemplateValues(); $templateValues->setDescription('test')->setBenefits('benefits')->setQualifications('qualification'); $this->snapShot->setTemplateValues($templateValues); $this->assertEquals($this->snapShot->getTemplateValues(), $templateValues); }
/** * @testdox Can be constructed in all possible states * @dataProvider provideTemplateTestAttributes * @covers ::__invoke * * @param string $attribute the mode to set * @param string $value */ public function testCopyTemplateAttributes($attribute, $value) { $this->snapShot->__invoke(array('templateValues' => array($attribute => $value))); $this->assertEquals($value, $this->snapShot->templateValues[$attribute]); }
/** * @expectedException \Core\Exception\ImmutablePropertyException */ public function testSetGetPortals() { $portals = array(1, 2, 3); $this->snapShot->setPortals($portals); $this->assertEquals($this->snapShot->portals, $portals); }