/** * @param string $ruleSet * * @return Slugify */ public function activateRuleSet($ruleSet) { return $this->addRules($this->provider->getRules($ruleSet)); }
protected function setUp() { $this->provider = Mockery::mock('\\Cocur\\Slugify\\RuleProvider\\RuleProviderInterface'); $this->provider->shouldReceive('getRules')->andReturn([]); $this->slugify = new Slugify([], $this->provider); }