$standardsDir
$standardsDir : string
The path to the standard's main directory.
generateFailureMessages(\PHP_CodeSniffer\Files\LocalFile $file) : array
Generate a list of test failures for a given sniffed file.
| \PHP_CodeSniffer\Files\LocalFile | $file | The file being tested. |
setCliValues(string $filename, \PHP_CodeSniffer\Config $config) : void
Get a list of CLI values to set before the file is tested.
| string | $filename | The name of the file being tested. |
| \PHP_CodeSniffer\Config | $config | The config data for the run. |
getErrorList() : \PHP_CodeSniffer\Standards\Squiz\Tests\Debug\array<int,
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.
getWarningList() : \PHP_CodeSniffer\Standards\Squiz\Tests\Debug\array<int,
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.
getTestFiles(string $testFileBase) : array<mixed,string>
Get a list of all test files to check.
These will have the same base as the sniff name but different extensions. We ignore the .php file as it is the class.
| string | $testFileBase | The base path that the unit tests files will have. |