Skip to content

Commit

Permalink
Merge pull request #124 from magento-tango/MAGETWO-34198
Browse files Browse the repository at this point in the history
[Tango] MAGETWO-34198
  • Loading branch information
Dooffy committed Mar 10, 2015
2 parents 670849f + 970263a commit 91b710e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions dev/tests/static/testsuite/Magento/Test/Integrity/ClassesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,16 @@ public function testCoversAnnotation()
$errors = [];
foreach ($files->getFiles([BP . '/dev/tests/{integration,unit}'], '*') as $file) {
$code = file_get_contents($file);
if (preg_match('/@covers(DefaultClass)?\s+([\w\\\\]+)(::([\w\\\\]+))?/', $code, $matches)) {
if ($this->isNonexistentEntityCovered($matches)) {
$errors[] = $file . ': ' . $matches[0];
if (preg_match_all(
'/@covers(DefaultClass)?\s+([\w\\\\]+)(::([\w\\\\]+))?/',
$code,
$matchesAll,
PREG_SET_ORDER
)) {
foreach ($matchesAll as $matches) {
if ($this->isNonexistentEntityCovered($matches)) {
$errors[] = $file . ': ' . $matches[0];
}
}
}
}
Expand Down

0 comments on commit 91b710e

Please sign in to comment.