Skip to content
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

Migrating to assertStringContainsString PHPUnit 8.x #142

Closed
peter279k opened this issue Mar 24, 2020 · 1 comment
Closed

Migrating to assertStringContainsString PHPUnit 8.x #142

peter279k opened this issue Mar 24, 2020 · 1 comment

Comments

@peter279k
Copy link

As title, after upgrading PHPUnit version, it will have following warning message:

[PHPUnit\Framework\Warning] Using assertContains() with string haystacks is deprecated and will not be supported in PHPUnit 9. Refactor your test to use assertStringContainsString() or assertStringContainsStringIgnoringCase() instead.

And it should change into assertStringContainsString and assertStringNotContainsString assertions.

@gordalina
Copy link
Owner

Added in version 5.0.0. Check the changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants