* @param str
* @throws Exception
*/
public void parseAndTest(Reader reader, String declarationName, String str,
boolean positiveTest) throws Exception {
IModuleDeclaration program = new PhpSourceParser().parse(reader, null,
ProjectOptions.useShortTags((IProject) null));
DeclarationSearcher searcher = new DeclarationSearcher(declarationName);
((PHPModuleDeclaration) program).traverse(searcher);
Declaration declaration = searcher.getResult();