Page MenuHomeWickedGov Phorge

GlobalFunctionUnitTest.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

GlobalFunctionUnitTest.php

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

Mime Type
text/x-php
Expires
Sun, Nov 22, 06:13 (1 d, 31 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2e/3b/550b965f783c9a6a2782568c8e8c
Default Alt Text
GlobalFunctionUnitTest.php (1 KB)

Event Timeline