Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Add Praspel tests #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 8 additions & 15 deletions Bench.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,39 +69,32 @@
class Bench implements \Iterator, \Countable {

/**
* Statistic : get the result.
*
* @const int
* @description 'Statistic : get the result.';
*/
const STAT_RESULT = 0;

/**
* Statistic : get the pourcent.
*
* @const int
* @description 'Statistic : get the pourcent.';
*/
const STAT_POURCENT = 1;

/**
* Collection of marks.
*
* @var \Hoa\Bench array
* @description 'Collection of marks.';
* @invariant _mark :array([to \Hoa\Bench\Mark], 0..);
*/
protected static $_mark = array();

/**
* Collection of filters.
*
* @var \Hoa\Bench array
* @description 'Collection of filters.';
* @invariant _filters: array([to \Hoa\Core\Consistency\Xcallable], 0..);
*/
protected $_filters = array();



/**
* Get a mark.
* If the mark does not exist, it will be automatically create.
*
* @description 'Get a mark. If the mark does not exist, it will be ' .
* 'automatically create.';
* @access public
* @param string $id The mark ID.
* @return \Hoa\Bench\Mark
Expand Down