HumHub Documentation (unofficial)

InlineIfDeclarationUnitTest extends AbstractSniffUnitTest
in package

FinalYes

Unit test class for the InlineIfDeclaration sniff.

Tags
covers

Table of Contents

Methods

getCliValues()  : array<string|int, mixed>
Get a list of CLI values to set before the file is tested.
getErrorList()  : array<int, int>
Returns the lines where errors should occur.
getWarningList()  : array<int, int>
Returns the lines where warnings should occur.

Methods

getCliValues()

Get a list of CLI values to set before the file is tested.

public getCliValues(string $testFile) : array<string|int, mixed>
Parameters
$testFile : string

The name of the file being tested.

Return values
array<string|int, mixed>

getErrorList()

Returns the lines where errors should occur.

public getErrorList() : 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.

Return values
array<int, int>

getWarningList()

Returns the lines where warnings should occur.

public getWarningList() : 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.

Return values
array<int, int>

        
On this page

Search results