Code Inspection: Assertion can be replaced with 'assertEmpty/assertNotEmpty'
assertFalse usages that can be replaced with
assertNotEmpty in PHPUnit tests.
See assertEmpty (phpunit.readthedocs.io) for details.
In the following example, asserting whether the
$arr array is empty is initially performed by providing the
count() functions calls as the conditions for the
assertTrue method. After the quick-fix is applied, the more specific
assertNotEmpty are used directly on the
Suppress an inspection in the editor
Place the caret at the highlighted line and press Alt+Enter or click .
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.