Skip to content

Commit

Permalink
fix extension initialization (fixes #123)
Browse files Browse the repository at this point in the history
  • Loading branch information
remorhaz committed May 14, 2024
1 parent 97cfea0 commit 3e05048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AllureCodeception.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ final class AllureCodeception extends Extension
private const DEFAULT_RESULTS_DIRECTORY = 'allure-results';

protected static array $events = [
Events::MODULE_INIT => 'moduleInit',
Events::SUITE_BEFORE => 'suiteBefore',
Events::SUITE_AFTER => 'suiteAfter',
Events::TEST_START => 'testStart',
Expand All @@ -68,8 +67,9 @@ final class AllureCodeception extends Extension
* @throws ConfigurationException
* phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
*/
public function moduleInit(): void
public function _initialize(): void
{
parent::_initialize();
QametaAllure::reset();
$this->testLifecycle = null;
$this->threadDetector = null;
Expand Down

0 comments on commit 3e05048

Please sign in to comment.