@ -41,7 +41,7 @@ class AutoloadBuilder
foreach ($iterator as $file) {
// skip non php files
$e = explode('.', $file->getFileName());
if ((end($e) !== 'php') || strstr((string)$file, 'test')) {
if ((end($e) !== 'php') || strstr($file->getFileName(), 'test')) {
continue;
}