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

Replace assertEquals and assertSame where the actual value is count( anything ) with the more specific assertCount. More...

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

Public Member Functions

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

Detailed Description

Replace assertEquals and assertSame where the actual value is count( anything ) with the more specific assertCount.

Based on AssertEqualsSniff sniff

Author
DannyS712 @license GPL-2.0-or-later

Member Function Documentation

◆ process()

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

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