예제 #1
0
 /**
  * @covers ::getRegistryScope
  */
 public function testGetRegistryScopeWithContextAndEnvironment()
 {
     $this->application->setContext('api');
     $this->application->setEnvironment('preprod');
     $configurator = new Configurator($this->application, $this->bundleLoader);
     $this->assertEquals('PREFIX.api.preprod', $configurator->getRegistryScope('PREFIX', true, true));
     $this->assertEquals('PREFIX.preprod', $configurator->getRegistryScope('PREFIX', false, true));
     $this->assertEquals('PREFIX.api', $configurator->getRegistryScope('PREFIX', true, false));
     $this->assertEquals('PREFIX', $configurator->getRegistryScope('PREFIX', false, false));
 }