Deprecated 'assertContains/assertNotContains' usage
Reports the deprecated assertContains()
and assertNotContains()
calls with the string $needle
and $ignoreCase
arguments.
The string $needle
and optional boolean $ignoreCase
parameters of the assertContains()
and assertNotContains()
functions are deprecated and removed in PHPUnit 9. For assertions that operate on strings, the specific assertStringContainsString()
, assertStringContainsStringIgnoringCase()
, assertStringNotContainsString()
, and assertStringNotContainsStringIgnoringCase()
methods should be used.
See Usage of the assertEquals function (phpunit.readthedocs.io) for details.
Inspection Details | |
---|---|
Available in: | PhpStorm 2023.3, Qodana for PHP 2023.3 |
Plugin: | PHP, 233.SNAPSHOT |
Last modified: 13 July 2023