4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Behat\Output\Statistics;
13 use Behat\Testwork\Counter\Memory;
14 use Behat\Testwork\Counter\Timer;
18 * Collects and provided exercise statistics.
20 * @author Wouter J <wouter@wouterj.nl>
27 public function startTimer();
32 public function stopTimer();
35 * Returns timer object.
39 public function getTimer();
42 * Returns memory usage object.
46 public function getMemory();
49 * Registers scenario stat.
51 * @param ScenarioStat $stat
53 public function registerScenarioStat(ScenarioStat $stat);
56 * Registers step stat.
58 * @param StepStat $stat
60 public function registerStepStat(StepStat $stat);
63 * Registers hook stat.
65 * @param HookStat $stat
67 public function registerHookStat(HookStat $stat);
70 * Returns counters for different scenario result codes.
74 public function getScenarioStatCounts();
77 * Returns skipped scenario stats.
79 * @return ScenarioStat[]
81 public function getSkippedScenarios();
84 * Returns failed scenario stats.
86 * @return ScenarioStat[]
88 public function getFailedScenarios();
91 * Returns counters for different step result codes.
95 public function getStepStatCounts();
98 * Returns failed step stats.
102 public function getFailedSteps();
105 * Returns pending step stats.
109 public function getPendingSteps();
112 * Returns failed hook stats.
116 public function getFailedHookStats();