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