HumHub Documentation (unofficial)

DisallowAlternativePHPTagsUnitTest extends AbstractSniffUnitTest
in package

FinalYes

Unit test class for the DisallowAlternativePHPTags sniff.

Tags
covers

Table of Contents

Methods

getErrorList()  : array<int, int>
Returns the lines where errors should occur.
getWarningList()  : array<int, int>
Returns the lines where warnings should occur.
getTestFiles()  : array<string|int, string>
Get a list of all test files to check.

Methods

getErrorList()

Returns the lines where errors should occur.

public getErrorList([string $testFile = '' ]) : array<int, int>

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.

Parameters
$testFile : string = ''

The name of the file being tested.

Return values
array<int, int>

getWarningList()

Returns the lines where warnings should occur.

public getWarningList([string $testFile = '' ]) : array<int, int>

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.

Parameters
$testFile : string = ''

The name of the file being tested.

Return values
array<int, int>

getTestFiles()

Get a list of all test files to check.

protected getTestFiles(string $testFileBase) : array<string|int, string>
Parameters
$testFileBase : string

The base path that the unit tests files will have.

Return values
array<string|int, string>

        
On this page

Search results