Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1c9b671

Browse filesBrowse files
committed
ensure that the validator is a mock object for backwards-compatibility
1 parent ba042b1 commit 1c9b671
Copy full SHA for 1c9b671

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.