/** * @expectedException \RuntimeException */ public function testNameToReplaceThrowsARuntimeExceptionWhenThereAreNoMatches() { $nameReplacer = new RegexNameReplacer('/^%.+%$/'); $nameReplacer->nameToReplace('%foo%'); }
public function __construct(array $params) { $delimiter = f\get($params, 'delimiter'); parent::__construct($this->createRegex($delimiter)); }