Events
in package
Contains all events dispatched by Codeception.
Tags
Table of Contents
Constants
- MODULE_INIT = 'module.init'
- The <b>MODULE_INIT</b> event occurs before modules are initialized.
- RESULT_PRINT_AFTER = 'result.print.after'
- The event listener method receives a {@link Codeception\Event\PrintResultEvent} instance.
- STEP_AFTER = 'step.after'
- The event listener method receives a {@link Codeception\Event\StepEvent} instance.
- STEP_BEFORE = 'step.before'
- The event listener method receives a {@link Codeception\Event\StepEvent} instance.
- SUITE_AFTER = 'suite.after'
- The <b>SUITE_AFTER</b> event occurs after suite has been executed.
- SUITE_BEFORE = 'suite.before'
- The <b>SUITE_BEFORE</b> event occurs before suite is executed.
- SUITE_INIT = 'suite.init'
- The <b>SUITE_INIT</b> event occurs when suite is initialized.
- TEST_AFTER = 'test.after'
- The event listener method receives a {@link Codeception\Event\TestEvent} instance.
- TEST_BEFORE = 'test.before'
- The event listener method receives a {@link Codeception\Event\TestEvent} instance.
- TEST_END = 'test.end'
- The event listener method receives a {@link Codeception\Event\TestEvent} instance.
- TEST_ERROR = 'test.error'
- The <b>TEST_ERROR</b> event occurs whenever test got an error while being executed.
- TEST_FAIL = 'test.fail'
- The <b>TEST_FAIL</b> event occurs whenever test has failed.
- TEST_FAIL_PRINT = 'test.fail.print'
- The event listener method receives a {@link Codeception\Event\FailEvent} instance.
- TEST_INCOMPLETE = 'test.incomplete'
- The event listener method receives a {@link Codeception\Event\FailEvent} instance.
- TEST_PARSED = 'test.parsed'
- The event listener method receives a {@link Codeception\Event\TestEvent} instance.
- TEST_SKIPPED = 'test.skipped'
- The event listener method receives a {@link Codeception\Event\FailEvent} instance.
- TEST_START = 'test.start'
- The event listener method receives a {@link Codeception\Event\TestEvent} instance.
- TEST_SUCCESS = 'test.success'
- The event listener method receives a {@link Codeception\Event\TestEvent} instance.
- TEST_USELESS = 'test.useless'
- The <b>TEST_USELESS</b> event occurs whenever test does not execute any assertions or when it calls expectNotToPerformAssertions and then performs some assertion.
- TEST_WARNING = 'test.warning'
- The event listener method receives a {@link Codeception\Event\FailEvent} instance.
Methods
- __construct() : mixed
- Private constructor. This class cannot be instantiated.
Constants
MODULE_INIT
The <b>MODULE_INIT</b> event occurs before modules are initialized.
public
mixed
MODULE_INIT
= 'module.init'
RESULT_PRINT_AFTER
The event listener method receives a {@link Codeception\Event\PrintResultEvent} instance.
public
mixed
RESULT_PRINT_AFTER
= 'result.print.after'
STEP_AFTER
The event listener method receives a {@link Codeception\Event\StepEvent} instance.
public
mixed
STEP_AFTER
= 'step.after'
STEP_BEFORE
The event listener method receives a {@link Codeception\Event\StepEvent} instance.
public
mixed
STEP_BEFORE
= 'step.before'
SUITE_AFTER
The <b>SUITE_AFTER</b> event occurs after suite has been executed.
public
mixed
SUITE_AFTER
= 'suite.after'
SUITE_BEFORE
The <b>SUITE_BEFORE</b> event occurs before suite is executed.
public
mixed
SUITE_BEFORE
= 'suite.before'
SUITE_INIT
The <b>SUITE_INIT</b> event occurs when suite is initialized.
public
mixed
SUITE_INIT
= 'suite.init'
Modules are created and initialized, but Actor class is not loaded.
TEST_AFTER
The event listener method receives a {@link Codeception\Event\TestEvent} instance.
public
mixed
TEST_AFTER
= 'test.after'
TEST_BEFORE
The event listener method receives a {@link Codeception\Event\TestEvent} instance.
public
mixed
TEST_BEFORE
= 'test.before'
TEST_END
The event listener method receives a {@link Codeception\Event\TestEvent} instance.
public
mixed
TEST_END
= 'test.end'
TEST_ERROR
The <b>TEST_ERROR</b> event occurs whenever test got an error while being executed.
public
mixed
TEST_ERROR
= 'test.error'
TEST_FAIL
The <b>TEST_FAIL</b> event occurs whenever test has failed.
public
mixed
TEST_FAIL
= 'test.fail'
TEST_FAIL_PRINT
The event listener method receives a {@link Codeception\Event\FailEvent} instance.
public
mixed
TEST_FAIL_PRINT
= 'test.fail.print'
TEST_INCOMPLETE
The event listener method receives a {@link Codeception\Event\FailEvent} instance.
public
mixed
TEST_INCOMPLETE
= 'test.incomplete'
TEST_PARSED
The event listener method receives a {@link Codeception\Event\TestEvent} instance.
public
mixed
TEST_PARSED
= 'test.parsed'
TEST_SKIPPED
The event listener method receives a {@link Codeception\Event\FailEvent} instance.
public
mixed
TEST_SKIPPED
= 'test.skipped'
TEST_START
The event listener method receives a {@link Codeception\Event\TestEvent} instance.
public
mixed
TEST_START
= 'test.start'
TEST_SUCCESS
The event listener method receives a {@link Codeception\Event\TestEvent} instance.
public
mixed
TEST_SUCCESS
= 'test.success'
TEST_USELESS
The <b>TEST_USELESS</b> event occurs whenever test does not execute any assertions or when it calls expectNotToPerformAssertions and then performs some assertion.
public
mixed
TEST_USELESS
= 'test.useless'
TEST_WARNING
The event listener method receives a {@link Codeception\Event\FailEvent} instance.
public
mixed
TEST_WARNING
= 'test.warning'
Methods
__construct()
Private constructor. This class cannot be instantiated.
private
__construct() : mixed