Author: Stuart Herbert (stuherbert@ganbarodigital.com)
Esempio n. 1
0
 /**
  * which test environment do we belong to?
  *
  * @return string
  */
 public function getTestEnvironmentName()
 {
     return $this->parentEnv->getName();
 }
Esempio n. 2
0
 /**
  *
  * @param  Injectables $injectables
  * @param  \DataSift\Storyplayer\TestEnvironmentsLib\TestEnvironmentsConfig|\DataSift\Storyplayer\DefinitionLib\TestEnvironment_Definition $envConfig
  * @return void
  */
 public function mergeTestEnvironmentConfig($injectables, $envConfig = null)
 {
     // do we have a test environment?
     if (!isset($injectables->activeTestEnvironmentName) || $envConfig === null) {
         $this->setData('target', null);
         return;
     }
     // we want to remember the name of the test environment
     $this->setData('target.name', $injectables->activeTestEnvironmentName);
     // merge in the loaded config
     $this->mergeData('target', $envConfig->getConfig());
 }