コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function getContactLesson()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getContactLesson', array());
     return parent::getContactLesson();
 }
コード例 #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());
 }