add('ZfrCorsTest\\', __DIR__); $configFiles = array(__DIR__ . '/TestConfiguration.php', __DIR__ . '/TestConfiguration.php.dist'); foreach ($configFiles as $configFile) { if (file_exists($configFile)) { $config = require $configFile; break; } } ServiceManagerFactory::setApplicationConfig($config); unset($files, $file, $loader, $configFiles, $configFile, $config);