Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 58166df

Browse files
committed
bug #37853 [Validator] ensure that the validator is a mock object for backwards-compatibility (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- [Validator] ensure that the validator is a mock object for backwards-compatibility | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | I accidentally broke the class in #37808. The validator was a mock object before (see the failing tests on the `5.1` branch). Commits ------- 1c9b671 ensure that the validator is a mock object for backwards-compatibility
2 parents ba042b1 + 1c9b671 commit 58166df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/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->createMock(AssertingContextualValidator::class));
119119

120120
return $context;
121121
}

0 commit comments

Comments
 (0)