/** * @covers Core\Entity\IndependentWork::setCreatedBy * @covers Core\Entity\IndependentWork:getCreatedBy */ public function testSetGetCreatedBy() { $mockLisUser = $this->getMockBuilder('Core\\Entity\\LisUser')->getMock(); $this->independentwork->setCreatedBy($mockLisUser); $this->assertEquals($mockLisUser, $this->independentwork->getCreatedBy()); }
/** * {@inheritDoc} */ public function getCreatedBy() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getCreatedBy', array()); return parent::getCreatedBy(); }