/** * * @param array $options * @param Comos\Tage\Compiler\Compiler $compiler */ public function __construct($options, \Comos\Tage\Compiler\Compiler $compiler) { $conf = \Comos\Tage\Util\Config::fromArray($options); $this->tplDir = $conf->rstr('tplDir'); $this->compiledTplDir = $conf->rstr('compiledTplDir'); $this->compiler = $compiler; }
/** * @param string $method * @param array $data * @param string $key * @param string $expectedValue * @dataProvider getParamMethodsProvider_RestrictMode_DataProvider */ public function testGetParamMethods_RestrictMode($method, $data, $key, $expectedValue) { $result = Config::fromArray($data)->{$method}($key); $this->assertEquals($expectedValue, $result); }