From f04f507cd5681ee381ab84d38ee689c18348c233 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 17 Aug 2020 14:06:24 +0200 Subject: [PATCH] [Validator] fix tests --- .../Component/Validator/Test/ConstraintValidatorTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php b/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php index a80b77152e..ea07316ac6 100644 --- a/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php +++ b/src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php @@ -115,7 +115,7 @@ abstract class ConstraintValidatorTestCase extends TestCase $validator->expects($this->any()) ->method('inContext') ->with($context) - ->willReturn($this->createMock(AssertingContextualValidator::class)); + ->willReturn($this->getMockBuilder(AssertingContextualValidator::class)->setMethods(null)->getMock()); return $context; }