-
Notifications
You must be signed in to change notification settings - Fork 13
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
mb_strpos(): Empty delimiter #17
Comments
The |
@GaryJones I don't think this repo can - nor should - work around any and all bugs in PHPUnit native assertions found and fixed between PHPUnit 4.x and now. Having said that, this is such a simple fix, that I'd be happy to accept a patch for it (with a unit test). As you've already done all the necessary research to find the underlying cause and how this was patched upstream, would you be willing to submit a PR ?
And it looks like we were looking at the same thing just now, as I was just about to ask you how that test could ever hit that condition as the |
Would it just be a case of adding an |
I'd suggest to keep the patch much simpler:
Reasoning: this library does not polyfill If people use this library the way it is intended to be used, i.e. use PHPUnit 9.x syntax and run the tests in all supported PHPUnit versions, only the Does that make sense ? |
This assertion:
found in the test files of this PR (work in progress, so may change), gave a failure in a GitHub Action when run under PHP 5.6.40 and PHPUnit 5.7.27, with an error message of
mb_strpos(): Empty delimiter
.It points to this part of this repo, which then appears to rely on PHPUnit itself (
assertContains()
).The next PHP up in my workflow is PHP 7.0.33, and that uses PHPUnit 6.5.14, and that works fine.
This issue in PHPUnit seems highly relevant, so I think I'm looking for a back-compat fix for
assertContains()
for PHPUnit 5.7.Could this be added in please @jrfnl?
The text was updated successfully, but these errors were encountered: