PHP Class Kahlan\Reporter\Reporter

Mostra file Open project: crysalead/kahlan Class Usage Examples

Protected Properties

Property Type Description
$_current integer Current position.
$_start float Starting time.
$_total integer Total of items to reach.

Public Methods

Method Description
__construct ( array $config = [] ) The Constructor.
end ( object $summary ) Callback called at the end of specs processing.
failed ( object $log = null ) Callback called on failure.
passed ( object $log = null ) Callback called on successful expect.
specEnd ( object $log = null ) Callback called after a spec execution.
specStart ( object $spec = null ) Callback called on a spec start.
start ( array $args ) Callback called before any specs processing.
stop ( object $summary ) Callback called at the end of the process.
suiteEnd ( object $suite = null ) Callback called after a suite execution.
suiteStart ( object $suite = null ) Callback called on a suite start.

Method Details

__construct() public method

The Constructor.
public __construct ( array $config = [] )
$config array The config array. Possible values are: - `'start' _integer_: A microtime value.

end() public method

Callback called at the end of specs processing.
public end ( object $summary )
$summary object The execution summary instance.

failed() public method

Callback called on failure.
public failed ( object $log = null )
$log object An expect log object.

passed() public method

Callback called on successful expect.
public passed ( object $log = null )
$log object An expect log object.

specEnd() public method

Callback called after a spec execution.
public specEnd ( object $log = null )
$log object The log object of the whole spec.

specStart() public method

Callback called on a spec start.
public specStart ( object $spec = null )
$spec object The spec object of the whole spec.

start() public method

Callback called before any specs processing.
public start ( array $args )
$args array The suite arguments.

stop() public method

Callback called at the end of the process.
public stop ( object $summary )
$summary object The execution summary instance.

suiteEnd() public method

Callback called after a suite execution.
public suiteEnd ( object $suite = null )
$suite object The suite instance.

suiteStart() public method

Callback called on a suite start.
public suiteStart ( object $suite = null )
$suite object The suite instance.

Property Details

$_current protected_oe property

Current position.
protected int $_current
return integer

$_start protected_oe property

Starting time.
protected float $_start
return float

$_total protected_oe property

Total of items to reach.
protected int $_total
return integer