Esempio n. 1
0
 /**
  * @param Feature $feature
  */
 public function add(Feature $feature)
 {
     $this->repository->add($feature);
 }
Esempio n. 2
0
 function it_can_add_new_features(Repository $repository, Strategy $strategy)
 {
     $repository->add(Argument::type('Coduo\\Flipper\\Feature'))->shouldBeCalled();
     $feature = new Feature('captcha', $strategy->getWrappedObject());
     $this->add($feature);
 }