예제 #1
0
 /**
  * @return void
  */
 public function testSetAndGetProfile()
 {
     BaseConfig::setProfile('abcdef123');
     $this->assertEquals('abcdef123', BaseConfig::getProfile());
     BaseConfig::setProfile('');
     $this->assertEquals('', BaseConfig::getProfile());
 }
예제 #2
0
 /**
  * @depends testGenerate
  * @depends testGet
  */
 public function testGenerateProfileConfigWhileSettingProfileByBaseConfig()
 {
     BaseConfig::setProfile('production');
     $production_core_config = new CoreConfig();
     $this->assertEquals('It is a secret!', $production_core_config->get('db', 'password'));
     BaseConfig::setProfile('');
 }
예제 #3
0
 /**
  * @return string
  */
 public function getProfile()
 {
     return BaseConfig::getProfile();
 }