PHP Class Kahlan\Reporter\Coverage\Exporter\CodeClimate

Datei anzeigen Open project: crysalead/kahlan Class Usage Examples

Public Methods

Method Description
export ( array $options ) : string Exports a coverage to a string.
write ( array $options ) : boolean Writes a coverage to an ouput file.

Protected Methods

Method Description
_sourceFiles ( object $collector ) : array Exports source file coverage

Method Details

_sourceFiles() protected static method

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

export() public static method

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.
return string

write() public static method

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.
return boolean