PHP Class kahlan\Summary

ファイルを表示 Open project: crysalead/kahlan

Protected Properties

Property Type Description
$_data array The data results array.
$_logs array The log results array.
$_memoryUsage integer The memory usage

Public Methods

Method Description
__call ( $name, $args ) : integer Return the number of specs of a certain type.
add ( string $type, mixed $value ) : self Add a data to a specific key.
executable ( ) : integer Return the number of executable specs.
expectation ( ) : integer Return the total number of expectations.
get ( string $type ) : array Get a data of a specific key.
log ( array $log ) : self Ingest a log.
logs ( string $type = null ) : array Get log report
memoryUsage ( $memoryUsage = null ) : integer Return the total number of specs.
total ( ) : integer Return the total number of specs.

Method Details

__call() public method

Return the number of specs of a certain type.
public __call ( $name, $args ) : integer
return integer

add() public method

Add a data to a specific key.
public add ( string $type, mixed $value ) : self
$type string The type of data.
$value mixed The value to add.
return self

executable() public method

Return the number of executable specs.
public executable ( ) : integer
return integer

expectation() public method

Return the total number of expectations.
public expectation ( ) : integer
return integer

get() public method

Get a data of a specific key.
public get ( string $type ) : array
$type string The type of data.
return array

log() public method

Ingest a log.
public log ( array $log ) : self
$log array The log report.
return self

logs() public method

Get log report
public logs ( string $type = null ) : array
$type string The type of data.
return array

memoryUsage() public method

Return the total number of specs.
public memoryUsage ( $memoryUsage = null ) : integer
return integer

total() public method

Return the total number of specs.
public total ( ) : integer
return integer

Property Details

$_data protected_oe property

The data results array.
protected array $_data
return array

$_logs protected_oe property

The log results array.
protected array $_logs
return array

$_memoryUsage protected_oe property

The memory usage
protected int $_memoryUsage
return integer