1 | <?php |
||
15 | class SpecReporter extends AbstractBaseReporter |
||
16 | { |
||
17 | /** |
||
18 | * @var int |
||
19 | */ |
||
20 | protected $column = 0; |
||
21 | |||
22 | /** |
||
23 | * @var \Peridot\Core\Suite |
||
24 | */ |
||
25 | protected $root; |
||
26 | |||
27 | /** |
||
28 | * Initialize reporter. Setup and listen for runner events |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | public function init() |
||
44 | |||
45 | public function onRunnerStart() |
||
49 | |||
50 | /** |
||
51 | * @param Suite $suite |
||
52 | */ |
||
53 | public function onSuiteStart(Suite $suite) |
||
60 | |||
61 | public function onSuiteEnd() |
||
68 | |||
69 | /** |
||
70 | * @param Test $test |
||
71 | */ |
||
72 | public function onTestPassed(Test $test) |
||
81 | |||
82 | /** |
||
83 | * @param Test $test |
||
84 | */ |
||
85 | public function onTestFailed(Test $test) |
||
93 | |||
94 | /** |
||
95 | * @param Test $test |
||
96 | */ |
||
97 | public function onTestPending(Test $test) |
||
105 | |||
106 | /** |
||
107 | * @param float $time |
||
108 | * @param TestResult $result |
||
109 | */ |
||
110 | public function onRunnerEnd($time, TestResult $result) |
||
115 | |||
116 | /** |
||
117 | * Returns the current indent for the spec reporter |
||
118 | * |
||
119 | * @return string |
||
120 | */ |
||
121 | public function indent() |
||
125 | } |
||
126 |