Skip to content

Commit d9a71a9

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: [Validator] fix tests ensure that the validator is a mock object for backwards-compatibility
2 parents 5c1af6d + ba489a5 commit d9a71a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Test/ConstraintValidatorTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ protected function createContext()
117117
$validator->expects($this->any())
118118
->method('inContext')
119119
->with($context)
120-
->willReturn(new AssertingContextualValidator());
120+
->willReturn($this->getMockBuilder(AssertingContextualValidator::class)->setMethods(null)->getMock());
121121

122122
return $context;
123123
}

0 commit comments

Comments
 (0)