Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7422815
GlobalFunctionUnitTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
GlobalFunctionUnitTest.php
View Options
<?php
/**
* Unit test class for the GlobalFunction sniff.
*
* @author Greg Sherwood <gsherwood@squiz.net>
* @copyright 2006-2015 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
*/
namespace
PHP_CodeSniffer\Standards\Squiz\Tests\Functions
;
use
PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest
;
/**
* Unit test class for the GlobalFunction sniff.
*
* @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\Functions\GlobalFunctionSniff
*/
final
class
GlobalFunctionUnitTest
extends
AbstractSniffUnitTest
{
/**
* Returns the lines where errors should occur.
*
* The key of the array should represent the line number and the value
* should represent the number of errors that should occur on that line.
*
* @return array<int, int>
*/
public
function
getErrorList
()
{
return
[];
}
//end getErrorList()
/**
* Returns the lines where warnings should occur.
*
* The key of the array should represent the line number and the value
* should represent the number of warnings that should occur on that line.
*
* @return array<int, int>
*/
public
function
getWarningList
()
{
return
[
2
=>
1
];
}
//end getWarningList()
}
//end class
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 06:13 (1 d, 23 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2e/3b/550b965f783c9a6a2782568c8e8c
Default Alt Text
GlobalFunctionUnitTest.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment