/** * Test getter and setter of validator property. * * @covers AppBundle\Entity\Validation::setValidator() * @covers AppBundle\Entity\Validation::getValidator() */ public function testSetValidator() { $expected = new User(); $this->validation->setValidator($expected); $this->assertEquals($expected, $this->validation->getValidator()); }