コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }