diff --git a/tests/apps.php b/tests/apps.php index 27bd428d949ef..f8bb86ff57c7b 100644 --- a/tests/apps.php +++ b/tests/apps.php @@ -10,19 +10,25 @@ function loadDirectory($path) { if (strpos($path, 'integration')) { return; } + if (strpos($path, 'Integration')) { return; } - if ($dh = opendir($path)) { - while ($name = readdir($dh)) { - if ($name[0] !== '.') { - $file = $path . '/' . $name; - if (is_dir($file)) { - loadDirectory($file); - } elseif (substr($name, -4, 4) === '.php') { - require_once $file; - } - } + + if (! $dh = opendir($path)) { + return; + } + + while ($name = readdir($dh)) { + if ($name[0] === '.') { + continue; + } + + $file = $path . '/' . $name; + if (is_dir($file)) { + loadDirectory($file); + } elseif (substr($name, -4, 4) === '.php') { + require_once $file; } } }