PHP 클래스 Kahlan\Reporter\Coverage\Exporter\CodeClimate

파일 보기 프로젝트 열기: crysalead/kahlan 1 사용 예제들

공개 메소드들

메소드 설명
export ( array $options ) : string Exports a coverage to a string.
write ( array $options ) : boolean Writes a coverage to an ouput file.

보호된 메소드들

메소드 설명
_sourceFiles ( object $collector ) : array Exports source file coverage

메소드 상세

_sourceFiles() 보호된 정적인 메소드

Exports source file coverage
protected static _sourceFiles ( object $collector ) : array
$collector object The collector instance.
리턴 array

export() 공개 정적인 메소드

Exports a coverage to a string.
public static export ( array $options ) : string
$options array The option array where the possible values are: -`'collector'` _object_ : The collector instance. -`'repo_token'` _string_ : The Coveralls repo token. -`'head'` _string_ : The HEAD hash. -`'branch'` _string_ : The branch name. -`'committed_at'` _integer_: The committed timestamp. -`'environment'` _array_ : The Environment. Possible values are: -`'pwd'` _string_ : The repo absolute path. -`'ci_service'` _string_ : The CI service name - `'name` _string_ : CI service name - `'build_identifier` _string_ : build identifier - `'build_url` _string_ : build url - `'branch` _string_ : branch name - `'commit_sha` _string_ : commit SHA - `'pull_request` _string_ : pull request id -`'run_at'` _integer_: The runned timestamp.
리턴 string

write() 공개 정적인 메소드

Writes a coverage to an ouput file.
public static write ( array $options ) : boolean
$options array The option where the possible values are: -`'file'` _string_: The output file name.
리턴 boolean