@Test public void directive_by_name() { PhpIniFile phpIniFile = parse("\n name1=value1 \n name2=value2 \n name1=value3"); assertThat(phpIniFile.directivesForName("name1")) .extracting(Directive::value) .extracting(SyntaxToken::text) .containsOnly("value1", "value3"); assertThat(phpIniFile.directivesForName("x")).isEmpty(); }
public PhpIniFile parse(PhpFile file) { return parse(file.contents()); }
PhpIniParser { public PhpIniFile parse(PhpFile file) { return parse(file.contents()); } }
PhpIniParser { public PhpIniFile parse(PhpFile file) { return parse(file.contents()); }  }
PhpIniParser { public PhpIniFile parse(PhpFile file) { return parse(file.contents()); }  PhpIniFile parse(PhpFile file); PhpIniFile parse(String content); }
PhpIniParser { public PhpIniFile parse(PhpFile file) { return parse(file.contents()); }  PhpIniFile parse(PhpFile file); PhpIniFile parse(String content);  }