PATH:
opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Squiz
/
Tests
/
CSS
<?php /** * Unit test class for the NamedColours 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\CSS; use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest; /** * Unit test class for the NamedColours sniff. * * @covers \PHP_CodeSniffer\Standards\Squiz\Sniffs\CSS\NamedColoursSniff */ final class NamedColoursUnitTest 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 [ 2 => 1, 6 => 1, 7 => 1, 11 => 1, 12 => 1, ]; }//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 []; }//end getWarningList() }//end class
[-] ClassDefinitionOpeningBraceSpaceUnitTest.css
[edit]
[-] EmptyStyleDefinitionUnitTest.css
[edit]
[-] OpacityUnitTest.css
[edit]
[-] MissingColonUnitTest.php
[edit]
[-] OpacityUnitTest.css.fixed
[edit]
[-] IndentationUnitTest.2.css
[edit]
[+]
..
[-] EmptyStyleDefinitionUnitTest.php
[edit]
[-] MissingColonUnitTest.css
[edit]
[-] SemicolonSpacingUnitTest.php
[edit]
[-] ColourDefinitionUnitTest.php
[edit]
[-] DisallowMultipleStyleDefinitionsUnitTest.css
[edit]
[-] EmptyClassDefinitionUnitTest.php
[edit]
[-] ForbiddenStylesUnitTest.php
[edit]
[-] IndentationUnitTest.1.css
[edit]
[-] DuplicateStyleDefinitionUnitTest.css
[edit]
[-] DisallowMultipleStyleDefinitionsUnitTest.php
[edit]
[-] IndentationUnitTest.php
[edit]
[-] ForbiddenStylesUnitTest.css
[edit]
[-] SemicolonSpacingUnitTest.css.fixed
[edit]
[-] NamedColoursUnitTest.css
[edit]
[-] DisallowMultipleStyleDefinitionsUnitTest.css.fixed
[edit]
[-] ShorthandSizeUnitTest.2.css
[edit]
[-] LowercaseStyleDefinitionUnitTest.php
[edit]
[-] LowercaseStyleDefinitionUnitTest.css
[edit]
[-] EmptyClassDefinitionUnitTest.css
[edit]
[-] ClassDefinitionClosingBraceSpaceUnitTest.php
[edit]
[-] ColourDefinitionUnitTest.css.fixed
[edit]
[-] ColonSpacingUnitTest.css.fixed
[edit]
[-] ClassDefinitionNameSpacingUnitTest.css
[edit]
[-] ClassDefinitionNameSpacingUnitTest.php
[edit]
[-] ColonSpacingUnitTest.css
[edit]
[-] ShorthandSizeUnitTest.1.css
[edit]
[-] ColourDefinitionUnitTest.css
[edit]
[-] DuplicateClassDefinitionUnitTest.php
[edit]
[-] ClassDefinitionOpeningBraceSpaceUnitTest.css.fixed
[edit]
[-] IndentationUnitTest.1.css.fixed
[edit]
[-] DuplicateStyleDefinitionUnitTest.php
[edit]
[-] ClassDefinitionClosingBraceSpaceUnitTest.css
[edit]
[-] SemicolonSpacingUnitTest.css
[edit]
[-] ShorthandSizeUnitTest.1.css.fixed
[edit]
[-] ShorthandSizeUnitTest.php
[edit]
[-] ForbiddenStylesUnitTest.css.fixed
[edit]
[-] ClassDefinitionOpeningBraceSpaceUnitTest.php
[edit]
[-] ClassDefinitionClosingBraceSpaceUnitTest.css.fixed
[edit]
[-] NamedColoursUnitTest.php
[edit]
[-] ColonSpacingUnitTest.php
[edit]
[-] DuplicateClassDefinitionUnitTest.css
[edit]
[-] OpacityUnitTest.php
[edit]