Commit 2351fc76 authored by Remi Collet's avatar Remi Collet Committed by Jeremy Mikola

PedantryTest can ignore autoload.php added by downstream

parent f66ffc9f
......@@ -66,6 +66,11 @@ class PedantryTest extends \PHPUnit_Framework_TestCase
continue;
}
/* autoload.php added downstream (e.g. Fedora) */
if ($file->getFilename() === 'autoload.php') {
continue;
}
$classNames[][] = 'MongoDB\\' . str_replace(DIRECTORY_SEPARATOR, '\\', substr($file->getRealPath(), strlen($srcDir) + 1, -4));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment