PHP Class kahlan\Summary

Afficher le fichier Open project: crysalead/kahlan

Protected Properties

Свойство Type Description
$_data array The data results array.
$_logs array The log results array.
$_memoryUsage integer The memory usage

Méthodes publiques

Méthode 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 méthode

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

add() public méthode

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.
Résultat self

executable() public méthode

Return the number of executable specs.
public executable ( ) : integer
Résultat integer

expectation() public méthode

Return the total number of expectations.
public expectation ( ) : integer
Résultat integer

get() public méthode

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

log() public méthode

Ingest a log.
public log ( array $log ) : self
$log array The log report.
Résultat self

logs() public méthode

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

memoryUsage() public méthode

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

total() public méthode

Return the total number of specs.
public total ( ) : integer
Résultat integer

Property Details

$_data protected_oe property

The data results array.
protected array $_data
Résultat array

$_logs protected_oe property

The log results array.
protected array $_logs
Résultat array

$_memoryUsage protected_oe property

The memory usage
protected int $_memoryUsage
Résultat integer