public function testCanReAssignProperties() { $article = new Article(); $article->setName('lorem'); $article->setDescription('bar'); $data = array('name' => 'foo'); $article->fromArray($data); $this->assertEquals("foo", $article->getName()); $this->assertEquals("bar", $article->getDescription()); }
/** * {@inheritDoc} */ public function setDescription($description) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setDescription', array($description)); return parent::setDescription($description); }