Skip to content

Commit

Permalink
Merge branch '3.4' into 4.4
Browse files Browse the repository at this point in the history
* 3.4:
  [Validator] fix tests
  ensure that the validator is a mock object for backwards-compatibility
  • Loading branch information
fabpot committed Aug 17, 2020
2 parents 5c1af6d + ba489a5 commit d9a71a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Test/ConstraintValidatorTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ protected function createContext()
$validator->expects($this->any())
->method('inContext')
->with($context)
->willReturn(new AssertingContextualValidator());
->willReturn($this->getMockBuilder(AssertingContextualValidator::class)->setMethods(null)->getMock());

return $context;
}
Expand Down

0 comments on commit d9a71a9

Please sign in to comment.