*/ final class Events { /** * Private constructor. This class cannot be instantiated. */ private function __construct() { } /** * The MODULE_INIT event occurs before modules are initialized. * * The event listener method receives a {@link Codeception\Event\SuiteEvent} instance. */ const MODULE_INIT = 'module.init'; /** * The SUITE_INIT 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 SUITE_BEFORE event occurs before suite is executed. * * The event listener method receives a {@link Codeception\Event\SuiteEvent} instance. */ const SUITE_BEFORE = 'suite.before'; /** * The SUITE_AFTER 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 TEST_FAIL event occurs whenever test has failed. * * The event listener method receives a {@link Codeception\Event\FailEvent} instance. */ const TEST_FAIL = 'test.fail'; /** * The TEST_ERROR 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'; }