/** * @covers Core\Entity\StudentGrade::setStudent * @covers Core\Entity\StudentGrade::getStudent */ public function testSetGetStudent() { $mockStudent = $this->getMockBuilder('Core\\Entity\\Student')->getMock(); $this->studentGrade->setStudent($mockStudent); $this->assertEquals($mockStudent, $this->studentGrade->getStudent()); }