/**
  * @expectedException \RuntimeException
  */
 public function testNameToReplaceThrowsARuntimeExceptionWhenThereAreNoMatches()
 {
     $nameReplacer = new RegexNameReplacer('/^%.+%$/');
     $nameReplacer->nameToReplace('%foo%');
 }