Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / Output / Statistics / Statistics.php
1 <?php
2
3 /*
4  * This file is part of the Behat.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\Behat\Output\Statistics;
12
13 use Behat\Testwork\Counter\Memory;
14 use Behat\Testwork\Counter\Timer;
15
16
17 /**
18  * Collects and provided exercise statistics.
19  *
20  * @author Wouter J <wouter@wouterj.nl>
21  */
22 interface Statistics
23 {
24     /**
25      * Starts timer.
26      */
27     public function startTimer();
28
29     /**
30      * Stops timer.
31      */
32     public function stopTimer();
33
34     /**
35      * Returns timer object.
36      *
37      * @return Timer
38      */
39     public function getTimer();
40
41     /**
42      * Returns memory usage object.
43      *
44      * @return Memory
45      */
46     public function getMemory();
47
48     /**
49      * Registers scenario stat.
50      *
51      * @param ScenarioStat $stat
52      */
53     public function registerScenarioStat(ScenarioStat $stat);
54
55     /**
56      * Registers step stat.
57      *
58      * @param StepStat $stat
59      */
60     public function registerStepStat(StepStat $stat);
61
62     /**
63      * Registers hook stat.
64      *
65      * @param HookStat $stat
66      */
67     public function registerHookStat(HookStat $stat);
68
69     /**
70      * Returns counters for different scenario result codes.
71      *
72      * @return array[]
73      */
74     public function getScenarioStatCounts();
75
76     /**
77      * Returns skipped scenario stats.
78      *
79      * @return ScenarioStat[]
80      */
81     public function getSkippedScenarios();
82
83     /**
84      * Returns failed scenario stats.
85      *
86      * @return ScenarioStat[]
87      */
88     public function getFailedScenarios();
89
90     /**
91      * Returns counters for different step result codes.
92      *
93      * @return array[]
94      */
95     public function getStepStatCounts();
96
97     /**
98      * Returns failed step stats.
99      *
100      * @return StepStat[]
101      */
102     public function getFailedSteps();
103
104     /**
105      * Returns pending step stats.
106      *
107      * @return StepStat[]
108      */
109     public function getPendingSteps();
110
111     /**
112      * Returns failed hook stats.
113      *
114      * @return HookStat[]
115      */
116     public function getFailedHookStats();
117 }