/** * Test getter/setter for id property */ public function testGetSetId() { $this->assertEmpty($this->channel->getId()); // change value and assert new $newId = 5; $this->assertEntity($this->channel->setId($newId)); $this->assertEquals($newId, $this->channel->getId()); }
/** * {@inheritDoc} */ public function setId($id) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setId', array($id)); return parent::setId($id); }