File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
dev/tests/static/testsuite/Magento/Test/Integrity Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -534,9 +534,16 @@ public function testCoversAnnotation()
534
534
$ errors = [];
535
535
foreach ($ files ->getFiles ([BP . '/dev/tests/{integration,unit} ' ], '* ' ) as $ file ) {
536
536
$ code = file_get_contents ($ file );
537
- if (preg_match ('/@covers(DefaultClass)?\s+([\w \\\\]+)(::([\w \\\\]+))?/ ' , $ code , $ matches )) {
538
- if ($ this ->isNonexistentEntityCovered ($ matches )) {
539
- $ errors [] = $ file . ': ' . $ matches [0 ];
537
+ if (preg_match_all (
538
+ '/@covers(DefaultClass)?\s+([\w \\\\]+)(::([\w \\\\]+))?/ ' ,
539
+ $ code ,
540
+ $ matchesAll ,
541
+ PREG_SET_ORDER
542
+ )) {
543
+ foreach ($ matchesAll as $ matches ) {
544
+ if ($ this ->isNonexistentEntityCovered ($ matches )) {
545
+ $ errors [] = $ file . ': ' . $ matches [0 ];
546
+ }
540
547
}
541
548
}
542
549
}
You can’t perform that action at this time.
0 commit comments