Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
crazyfactory/sniffs / src / CrazyFactory / Tests / Formatting / UseInAlphabeticalOrderUnitTest.php
Size: Mime:
<?php
namespace CrazyFactory\Tests\Formatting;

use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;

class UseInAlphabeticalOrderUnitTest 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>
     */
    protected function getErrorList($testFile = '')
    {
        switch ($testFile) {
            case 'UseInAlphabeticalOrderUnitTest.1.inc':
                return [
                    2 => 6
                ];
                break;
            case 'UseInAlphabeticalOrderUnitTest.2.inc':
                return [
                    3 => 1
                ];
                break;
            default:
                return [];
        }
    }

    /**
     * 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)
     */
    protected function getWarningList()
    {
        return [];
    }
}