11<?php
2- namespace Yandex \Allure \Adapter ;
2+ namespace Yandex \Allure \Codeception ;
33
44use Codeception \Configuration ;
55use Codeception \Event \FailEvent ;
1616use Codeception \Util \Locator ;
1717use Symfony \Component \Filesystem \Filesystem ;
1818use Symfony \Component \Finder \Finder ;
19+ use Yandex \Allure \Adapter \Allure ;
1920use Yandex \Allure \Adapter \Annotation ;
2021use Yandex \Allure \Adapter \Annotation \Description ;
2122use Yandex \Allure \Adapter \Annotation \Features ;
2223use Yandex \Allure \Adapter \Annotation \Issues ;
2324use Yandex \Allure \Adapter \Annotation \Stories ;
2425use Yandex \Allure \Adapter \Annotation \Title ;
26+ use Yandex \Allure \Adapter \Event \AddParameterEvent ;
2527use Yandex \Allure \Adapter \Event \StepFinishedEvent ;
2628use Yandex \Allure \Adapter \Event \StepStartedEvent ;
2729use Yandex \Allure \Adapter \Event \TestCaseBrokenEvent ;
4648const DEFAULT_REPORT_DIRECTORY = 'allure-report ' ;
4749const INITIALIZED_PARAMETER = '_initialized ' ;
4850
49- class AllureAdapter extends Extension
51+ class AllureCodeception extends Extension
5052{
5153 //NOTE: here we implicitly assume that PHP runs in single-threaded mode
5254 private $ uuid ;
@@ -306,7 +308,7 @@ function ($a) {
306308 $ currentExample = $ test ->getMetadata ()->getCurrent ();
307309 if ($ currentExample && isset ($ currentExample ['example ' ]) ) {
308310 foreach ($ currentExample ['example ' ] as $ name => $ param ) {
309- $ paramEvent = new Event \ AddParameterEvent (
311+ $ paramEvent = new AddParameterEvent (
310312 $ name , $ this ->stringifyArgument ($ param ), ParameterKind::ARGUMENT );
311313 $ this ->getLifecycle ()->fire ($ paramEvent );
312314 }
@@ -319,7 +321,7 @@ function ($a) {
319321 $ paramNames = $ testMethod ->getParameters ();
320322 foreach ($ method ->invoke ($ test ) as $ key => $ param ) {
321323 $ paramName = array_shift ($ paramNames );
322- $ paramEvent = new Event \ AddParameterEvent (
324+ $ paramEvent = new AddParameterEvent (
323325 is_null ($ paramName )
324326 ? $ key
325327 : $ paramName ->getName (),
0 commit comments