MediaWiki-CodeSniffer
MediaWiki CodeSniffer Standards
|
Converts PHPUnit_Framework_TestCase to the new PHPUnit 6 namespaced PHPUnit\Framework\Testcase. More...
Public Member Functions | |
register () | |
Only look for classes that extend something. | |
process (File $phpcsFile, $stackPtr) | |
Converts PHPUnit_Framework_TestCase to the new PHPUnit 6 namespaced PHPUnit\Framework\Testcase.
The namespaced classes were backported in 4.8.35, so this is compatible with 4.8.35+ and 5.4.3+
MediaWiki\Sniffs\PHPUnit\PHPUnitClassUsageSniff::process | ( | File | $phpcsFile, |
$stackPtr ) |
File | $phpcsFile | |
int | $stackPtr | Position of extends token |
MediaWiki\Sniffs\PHPUnit\PHPUnitClassUsageSniff::register | ( | ) |
Only look for classes that extend something.
@inheritDoc