protected function configSet($values) { $this->config->method('get')->will($this->returnCallback(function ($arg) use($values) { return $values[$arg]; })); }