MediaWiki-CodeSniffer
MediaWiki CodeSniffer Standards
Loading...
Searching...
No Matches
MediaWiki\Sniffs\PHPUnit\AssertionOrderSniff Class Reference

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...

+ Inheritance diagram for MediaWiki\Sniffs\PHPUnit\AssertionOrderSniff:

Public Member Functions

 register ()
 @inheritDoc
 
 process (File $phpcsFile, $stackPtr)
 

Detailed Description

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).

Author
DannyS712

Member Function Documentation

◆ process()

MediaWiki\Sniffs\PHPUnit\AssertionOrderSniff::process ( File $phpcsFile,
$stackPtr )
Parameters
File$phpcsFile
int$stackPtr
Returns
void|int

The documentation for this class was generated from the following file: