MediaWiki-CodeSniffer
MediaWiki CodeSniffer Standards
|
Fix uses of assertEquals/assertNotEquals or assertSame/assertNotSame with the actual value before the expected Currently, only catches assertions where the actual value is a variable, or at least starts with a variable token, and the expected is a literal value or a variable in the form $expected*, or an array of such values (including nested arrays). More...
Public Member Functions | |
register () | |
@inheritDoc | |
process (File $phpcsFile, $stackPtr) | |
Fix uses of assertEquals/assertNotEquals or assertSame/assertNotSame with the actual value before the expected Currently, only catches assertions where the actual value is a variable, or at least starts with a variable token, and the expected is a literal value or a variable in the form $expected*, or an array of such values (including nested arrays).
MediaWiki\Sniffs\PHPUnit\AssertionOrderSniff::process | ( | File | $phpcsFile, |
$stackPtr ) |
File | $phpcsFile | |
int | $stackPtr |