public static function setUpBeforeClass() { // setup static configuration resource path for test purposes RootClassLoader::addLoader(new StandardClassLoader(self::TEST_VENDOR, __DIR__ . '/' . self::CONFIG_ROOT_FOLDER)); // setup configuration provider for this test $provider = new PhpConfigurationProvider(); $provider->setOmitContext(true); $provider->setOmitConfigSubFolder(true); ConfigurationManager::registerProvider('php', $provider); }
public static function setUpBeforeClass() { // setup static configuration resource path for test purposes RootClassLoader::addLoader(new StandardClassLoader(self::TEST_VENDOR, __DIR__ . '/' . self::CONFIG_ROOT_FOLDER)); // setup configuration provider for this test /* @var $provider IniConfigurationProvider */ $provider = ConfigurationManager::retrieveProvider('ini'); // store for further re-store self::$originalIniProvider = $provider; $provider->setOmitContext(true); $provider->setOmitConfigSubFolder(true); ConfigurationManager::registerProvider('ini', $provider); // setup configuration provider for this test $provider = new PhpConfigurationProvider(); $provider->setOmitContext(true); $provider->setOmitConfigSubFolder(true); ConfigurationManager::registerProvider('php', $provider); }