@@ -312,7 +312,7 @@ public function testEnd()
312
312
313
313
public function stepBefore (StepEvent $ stepEvent )
314
314
{
315
- $ stepAction = $ stepEvent ->getStep ()->getAction ();
315
+ $ stepAction = $ stepEvent ->getStep ()->__toString ();
316
316
$ this ->getLifecycle ()->fire (new StepStartedEvent ($ stepAction ));
317
317
}
318
318
@@ -358,7 +358,6 @@ private function getCeptAnnotations($test)
358
358
foreach ($ lines as $ line ) {
359
359
$ output = [];
360
360
if (preg_match ('/\*\s\@(.*)\((.*)\)/ ' , $ line , $ output ) > 0 ) {
361
- \Codeception \Util \Debug::debug ($ output );
362
361
if ($ output [1 ] == "Features " ) {
363
362
$ feature = new \Yandex \Allure \Adapter \Annotation \Features ();
364
363
$ features = $ this ->splitAnnotationContent ($ output [2 ]);
@@ -385,9 +384,9 @@ private function getCeptAnnotations($test)
385
384
$ annotations [get_class ($ story )] = $ story ;
386
385
} else if ($ output [1 ] == 'Issues ' ) {
387
386
$ issues = $ this ->splitAnnotationContent ($ output [2 ]);
388
- $ issue = new \Yandex \Allure \Adapter \Annotation \Stories ();
387
+ $ issue = new \Yandex \Allure \Adapter \Annotation \Issues ();
389
388
foreach ($ issues as $ issueName ) {
390
- $ issues -> issuesKeys [] = $ issueName ;
389
+ $ issue -> issueKeys [] = $ issueName ;
391
390
}
392
391
$ annotations [get_class ($ issue )] = $ issue ;
393
392
} else {
0 commit comments