getValueFor() публичный Метод

public getValueFor ( $requestName, $default = null )
Пример #1
0
 /**
  * Returns initial config data.
  * 
  * @return array
  */
 public function getConfigData()
 {
     $config = array();
     $vcs = $this->informationCollector->getValueFor('vcs');
     if ($vcs !== 'none') {
         $config['vcs'] = $vcs;
     }
     $config['versionPersister'] = $this->informationCollector->getValueFor('persister');
     return $config;
 }
 public function testGetValueForWithDefault()
 {
     $ic = new InformationCollector();
     $this->assertEquals('bar', $ic->getValueFor('foo', 'bar'));
 }