/** * @param Feature $feature */ public function add(Feature $feature) { $this->repository->add($feature); }
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); }