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