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