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