Inspectopedia
 
2024.3

Assertion can be replaced with 'assertEmpty/assertNotEmpty'

Info
New
Last modified: 03 December 2024

Reports the assertTrue/assertFalse usages that can be replaced with assertEmpty/assertNotEmpty in PHPUnit tests.

See assertEmpty (phpunit.readthedocs.io) for details.