diff --git a/Test/ConstraintValidatorTestCase.php b/Test/ConstraintValidatorTestCase.php index a80b77152..ea07316ac 100644 --- a/Test/ConstraintValidatorTestCase.php +++ b/Test/ConstraintValidatorTestCase.php @@ -115,7 +115,7 @@ protected function createContext() $validator->expects($this->any()) ->method('inContext') ->with($context) - ->willReturn($this->createMock(AssertingContextualValidator::class)); + ->willReturn($this->getMockBuilder(AssertingContextualValidator::class)->setMethods(null)->getMock()); return $context; }