Ejemplo n.º 1
0
 /**
  * @group AliasAlias
  */
 public function testInstanceManagerResolvesRecursiveAliasesForConfig()
 {
     $config = array('parameters' => array('username' => 'my-username'));
     $im = new InstanceManager();
     $im->addAlias('bar-alias', 'Some\\Class');
     $im->addAlias('foo-alias', 'bar-alias');
     $im->setConfig('bar-alias', $config);
     $config['injections'] = array();
     $config['shared'] = true;
     $this->assertEquals($config, $im->getConfig('foo-alias'));
 }