PHP 클래스 alexia\mar\tests

파일 보기 프로젝트 열기: alexia/php7mar

공개 메소드들

메소드 설명
__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