コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function setContactLesson($contactLesson)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'setContactLesson', array($contactLesson));
     return parent::setContactLesson($contactLesson);
 }
コード例 #2
0
ファイル: TeacherTest.php プロジェクト: parnustk/lisbackend
 /**
  * @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());
 }