From ba489a5a48b13f5b3afce6e5498adf6f9da857c6 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 17 Aug 2020 14:06:24 +0200 Subject: [PATCH] [Validator] fix tests --- Test/ConstraintValidatorTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }