Skip to content

Migrating to assertStringContainsString PHPUnit 8.x #142

Closed
@peter279k

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions