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