public function setUp() { $this->objectManager = $this->prophesize(ObjectManager::class); $this->roleRepository = $this->prophesize(RoleRepositoryInterface::class); $this->accessControlRepository = $this->prophesize(AccessControlRepositoryInterface::class); $this->maskConverter = $this->prophesize(MaskConverterInterface::class); $this->doctrineAccessControlProvider = new DoctrineAccessControlProvider($this->objectManager->reveal(), $this->roleRepository->reveal(), $this->accessControlRepository->reveal(), $this->maskConverter->reveal()); }