PHP Класс alexia\mar\tests

Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( $testTypes = [] ) : void Main Constructor
checkSyntax ( $filePath ) : array Check if syntax is valid and return line information if not.
getPHPBinaryPath ( ) : string Return the PHP binary location.
getPHPVersion ( ) : mixed Return the version of PHP for the selected binary.
getTestClassName ( $testType ) : string Get the class name for this test type.
registerTests ( $testType, $tests ) : void Register test(s);
setPHPBinaryPath ( $path ) : void Set the location of the PHP binary.
testLine ( $line ) : array Test the line of code and return issues found.

Описание методов

__construct() публичный Метод

Main Constructor
public __construct ( $testTypes = [] ) : void
Результат void

checkSyntax() публичный Метод

Check if syntax is valid and return line information if not.
public checkSyntax ( $filePath ) : array
Результат array Test Results

getPHPBinaryPath() публичный Метод

Return the PHP binary location.
public getPHPBinaryPath ( ) : string
Результат string PHP binary location.

getPHPVersion() публичный Метод

Return the version of PHP for the selected binary.
public getPHPVersion ( ) : mixed
Результат mixed Version string or false on error.

getTestClassName() публичный Метод

Get the class name for this test type.
public getTestClassName ( $testType ) : string
Результат string Test Class Name

registerTests() публичный Метод

Register test(s);
public registerTests ( $testType, $tests ) : void
Результат void

setPHPBinaryPath() публичный Метод

Set the location of the PHP binary.
public setPHPBinaryPath ( $path ) : void
Результат void

testLine() публичный Метод

Test the line of code and return issues found.
public testLine ( $line ) : array
Результат array Any issues found