/** * {@inheritDoc} */ public function setContactLesson($contactLesson) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'setContactLesson', array($contactLesson)); return parent::setContactLesson($contactLesson); }
/** * @covers Core\Entity\Teacher::setContactLesson * @covers Core\Entity\Teacher::getContactLesson */ public function testSetGetContactLesson() { $cl = $this->getMockBuilder('Core\\Entity\\ContactLesson')->getMock(); $this->teacher->setContactLesson($cl); $this->assertEquals($cl, $this->teacher->getContactLesson()); }