Skip to content

Commit 2351fc7

Browse files
remicolletjmikola
authored andcommitted
PedantryTest can ignore autoload.php added by downstream
1 parent f66ffc9 commit 2351fc7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/PedantryTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ public function provideProjectClassNames()
6666
continue;
6767
}
6868

69+
/* autoload.php added downstream (e.g. Fedora) */
70+
if ($file->getFilename() === 'autoload.php') {
71+
continue;
72+
}
73+
6974
$classNames[][] = 'MongoDB\\' . str_replace(DIRECTORY_SEPARATOR, '\\', substr($file->getRealPath(), strlen($srcDir) + 1, -4));
7075
}
7176

0 commit comments

Comments
 (0)