-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[3.0] Fix tests #15664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.0] Fix tests #15664
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ addons: | |
matrix: | ||
include: | ||
- php: hhvm | ||
- php: 5.5.9 | ||
- php: 5.5 | ||
- php: 5.6 | ||
- php: 5.6 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,9 +87,6 @@ public function provideInvalidComparisons() | |
array($object, '2', $object, '2', __NAMESPACE__.'\ComparisonTest_Class'), | ||
); | ||
|
||
$immutableDate = new \DateTimeImmutable('2000-01-01'); | ||
$comparisons[] = array($immutableDate, 'Jan 1, 2000, 12:00 AM', $immutableDate, 'Jan 1, 2000, 12:00 AM', 'DateTime'); | ||
|
||
return $comparisons; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is it removed ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. because it's wrong, and already tested thanks to https://github.com/nicolas-grekas/symfony/blob/m-fx/src/Symfony/Component/Validator/Tests/Constraints/AbstractComparisonValidatorTestCase.php#L37 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah, I was not aware of this nice trick There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't this be done in older branches though ? |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the phpdoc needs to be updated though, as it says it returns
int|false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #15672