/** * @covers Core\Entity\StudentGrade::setContactLesson * @covers Core\Entity\StudentGrade::getContactLesson */ public function testSetGetContactLesson() { $mockContactLesson = $this->getMockBuilder('Core\\Entity\\ContactLesson')->getMock(); $this->studentGrade->setContactLesson($mockContactLesson); $this->assertEquals($mockContactLesson, $this->studentGrade->getContactLesson()); }