From 3e05048c89953b7473976ef3e76ea401d0b6f761 Mon Sep 17 00:00:00 2001 From: Edward Surov Date: Wed, 15 May 2024 00:07:15 +0300 Subject: [PATCH] fix extension initialization (fixes #123) --- src/AllureCodeception.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AllureCodeception.php b/src/AllureCodeception.php index cbcabc9..deb0457 100644 --- a/src/AllureCodeception.php +++ b/src/AllureCodeception.php @@ -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', @@ -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;