Inspectopedia
 
2024.3

Assertion can be replaced with 'fail'

Info
New
Last modified: 03 December 2024

Reports the assertTrue()/assertFalse() calls with the false/true arguments in PHPUnit tests. Such usages can be replaced with fail() calls to indicate that a test is expected to fail.