-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
assertArraySubset with $strict=true doesn't display differences properly #3234
Comments
+1 with PHPUnit 7.3.0 |
I am not sure whether displaying a diff is useful here to begin with. Is
not sufficient? If it is, then we should simply remove the diff completely. |
If the information is only it, I can not know what kind of problem was with the actual value. Displaying the following information at the same time makes debugging more efficient.
|
The input for the diff is currently generated with |
This fix is valid for this issue, but I think there is a problem when When It is good to use |
Can you explain why using |
When expected is [
'foo' => 1,
'bar' => 2,
] and actual is [
'foo' => '1',
'bar' => '3',
] the check doesn't pass and the diff is shown. If |
This issue has been automatically marked as stale because it has not had activity within the last 60 days. It will be closed after 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity since it was marked as stale. Thank you for your contributions. |
The following test will fail but no differences will be displayed.
The text was updated successfully, but these errors were encountered: