-
-
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() does not work as expected #3240
Comments
This might be what was mentioned in #3161 (comment). To be honest, I do not know how this is expected to work as I never used @marcioAlmada originally implemented If @pfrenssen really introduced a BC break with #3161 then, of course, this needs to be fixed (or reverted if it cannot be fixed). |
This adds the test case from sebastianbergmann#3240.
@rafrsr thanks for the report. I have made a test case out of your code: #3243. I was able to replicate the issue without having to use The good news is that there is already a PR that fixes this: #3186. I will add the test for this case to that PR to prove that this is conclusively fixed. |
This proves that the bug reported in sebastianbergmann#3240 is also fixed in scope of this PR.
This proves that the bug reported in sebastianbergmann#3240 is also fixed in scope of this PR.
I have reverted #3240 to fix this issue. |
After upgrade to phpunit
7.3
theassertArraySubset
does not works as expected. I see that in this version great changes was made in this part; check the following example; works well with7.2.7
.The first part of the example is only for demonstration, really I use another library to get a JSON response (the library return that response using stdClass). But the point is, for some reason after convert this data to array the
assertArraySubset
does not work as expected; and the problem only happens with theboolean
field, otherwise pass.The text was updated successfully, but these errors were encountered: