File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/Magento/FunctionalTestingFramework/Test/Util Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \FunctionalTestingFramework \Test \Util ;
8
8
9
+ use Magento \FunctionalTestingFramework \Config \MftfApplicationConfig ;
9
10
use Magento \FunctionalTestingFramework \Exceptions \XmlException ;
11
+ use Magento \FunctionalTestingFramework \Util \Logger \LoggingUtil ;
10
12
11
13
/**
12
14
* Class AnnotationExtractor
@@ -73,12 +75,12 @@ public function extractAnnotations($testAnnotations, $filename)
73
75
}
74
76
// TODO deprecation|deprecate MFTF 3.0.0
75
77
if ($ annotationKey == "group " && in_array ("skip " , $ annotationValues )) {
76
- print (
77
- " Test: $ filename " .
78
- PHP_EOL .
79
- " Use of group skip will be deprecated in MFTF 3.0.0. Please update tests to use skip tags. " .
80
- PHP_EOL
81
- );
78
+ if (MftfApplicationConfig:: getConfig ()-> verboseEnabled ()) {
79
+ LoggingUtil:: getInstance ()-> getLogger (AnnotationExtractor::class)-> warning (
80
+ " Use of group skip will be deprecated in MFTF 3.0.0. Please update tests to use skip tags. " ,
81
+ [ " test " => $ filename ]
82
+ );
83
+ }
82
84
}
83
85
84
86
$ annotationObjects [$ annotationKey ] = $ annotationValues ;
You can’t perform that action at this time.
0 commit comments