Beispiel #1
0
 /**
  * @return FeatureSet
  */
 protected function createFeatureSet()
 {
     $this->lock();
     $set = new FeatureSet();
     foreach ($this->providers as $provider) {
         $features = $this->validateFeatureArray($this->getFeaturesFromProvider($provider), $provider);
         $set->mergeFeatures($features);
     }
     return $set;
 }
Beispiel #2
0
 public function testGetAll()
 {
     $this->assertEquals(['foo' => $this->features['foo_a'], 'bar' => $this->features['bar_b']], $this->default->getAllCanonical());
     $this->assertEquals(['foo' => ['a' => $this->features['foo_a'], 'b' => $this->features['foo_b']], 'bar' => ['a' => $this->features['bar_a'], 'b' => $this->features['bar_b']]], $this->default->getAll());
 }