Skip to content

Commit e3dffc9

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

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
@@ -115,7 +115,7 @@ protected function createContext()
115115
$validator->expects($this->any())
116116
->method('inContext')
117117
->with($context)
118-
->willReturn(new AssertingContextualValidator());
118+
->willReturn($this->getMockBuilder(AssertingContextualValidator::class)->setMethods(null)->getMock());
119119

120120
return $context;
121121
}

0 commit comments

Comments
 (0)