Events.php
3.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
namespace Codeception;
/**
* Contains all events dispatched by Codeception.
*
* @author tiger-seo <tiger.seo@gmail.com>
*/
final class Events
{
/**
* Private constructor. This class cannot be instantiated.
*/
private function __construct()
{
}
/**
* The <b>MODULE_INIT</b> event occurs before modules are initialized.
*
* The event listener method receives a {@link Codeception\Event\SuiteEvent} instance.
*/
const MODULE_INIT = 'module.init';
/**
* The <b>SUITE_INIT</b> event occurs when suite is initialized.
* Modules are created and initialized, but Actor class is not loaded.
*
* The event listener method receives a {@link Codeception\Event\SuiteEvent} instance.
*/
const SUITE_INIT = 'suite.init';
/**
* The <b>SUITE_BEFORE</b> event occurs before suite is executed.
*
* The event listener method receives a {@link Codeception\Event\SuiteEvent} instance.
*/
const SUITE_BEFORE = 'suite.before';
/**
* The <b>SUITE_AFTER</b> event occurs after suite has been executed.
*
* The event listener method receives a {@link Codeception\Event\SuiteEvent} instance.
*/
const SUITE_AFTER = 'suite.after';
/**
* The event listener method receives a {@link Codeception\Event\TestEvent} instance.
*/
const TEST_START = 'test.start';
/**
* The event listener method receives a {@link Codeception\Event\TestEvent} instance.
*/
const TEST_BEFORE = 'test.before';
/**
* The event listener method receives a {@link Codeception\Event\StepEvent} instance.
*/
const STEP_BEFORE = 'step.before';
/**
* The event listener method receives a {@link Codeception\Event\StepEvent} instance.
*/
const STEP_AFTER = 'step.after';
/**
* The <b>TEST_FAIL</b> event occurs whenever test has failed.
*
* The event listener method receives a {@link Codeception\Event\FailEvent} instance.
*/
const TEST_FAIL = 'test.fail';
/**
* The <b>TEST_ERROR</b> event occurs whenever test got an error while being executed.
*
* The event listener method receives a {@link Codeception\Event\FailEvent} instance.
*/
const TEST_ERROR = 'test.error';
/**
* The event listener method receives a {@link Codeception\Event\TestEvent} instance.
*/
const TEST_PARSED = 'test.parsed';
/**
* The event listener method receives a {@link Codeception\Event\FailEvent} instance.
*/
const TEST_INCOMPLETE = 'test.incomplete';
/**
* The event listener method receives a {@link Codeception\Event\FailEvent} instance.
*/
const TEST_SKIPPED = 'test.skipped';
/**
* The event listener method receives a {@link Codeception\Event\TestEvent} instance.
*/
const TEST_SUCCESS = 'test.success';
/**
* The event listener method receives a {@link Codeception\Event\TestEvent} instance.
*/
const TEST_AFTER = 'test.after';
/**
* The event listener method receives a {@link Codeception\Event\TestEvent} instance.
*/
const TEST_END = 'test.end';
/**
* The event listener method receives a {@link Codeception\Event\FailEvent} instance.
*/
const TEST_FAIL_PRINT = 'test.fail.print';
/**
* The event listener method receives a {@link Codeception\Event\PrintResultEvent} instance.
*/
const RESULT_PRINT_AFTER = 'result.print.after';
}