-
-
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
AssertContains : $ignorecase doesn't work #3315
Comments
Thank you for your report. Please provide a minimal, self-contained, reproducing test case that shows the problem you are reporting. Do not use screenshots of code. Without such a minimal, self-contained, reproducing test case I will not be able to investigate this issue. |
I'm not sure this is actually a bug. I think the code is behaving more or less as expected, and the behavior is documented in the PHPUnit documentation (for both 7 and 6.5).
In your example, because your second parameter is an array, PHPUnit assumes you are using the "array" form of the method, and ignores the Perhaps there is some small room for improvement here. PHPUnit could throw an IllegalArgumentException (or similar) in |
No feedback, closing. |
@sebastianbergmann looks like there is an example in the related pull request: #3317 |
I'm using and learning how to test my code with PHPUnit. I had some test to make, so I can understand some asserts. Then I tried this one :
So I expected this test to be ok, but...
It seems the $ignorecase parameter doesn't work, true or false doesn't change anything. Is it normal ?
The text was updated successfully, but these errors were encountered: