PHP Class Kahlan\Reporter\Coverage\Exporter\Istanbul

Show file Open project: crysalead/kahlan Class Usage Examples

Public Methods

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

Protected Methods

Method Description
_export ( $path, $tree, $coverage ) : array Exports source file coverage

Method Details

_export() protected static method

Exports source file coverage
protected static _export ( $path, $tree, $coverage ) : array
return array

export() public static method

Exports a coverage to a Istanbul compatible JSON format.
public static export ( array $options ) : string
$options array The option array where the possible values are: -`'collector'` _object_ : The collector instance.
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