@Test public void test() throws Exception { String filename = "metrics/executable_lines.php"; PhpFile file = FileTestUtils.getFile(new File("src/test/resources/"+filename)); Set<Integer> executableLines = new ExecutableLineVisitor(parse(filename)).getExecutableLines(); assertThat(executableLines).containsExactlyElementsOf(expectedExecutableLines(file)); }
public Set<Integer> getExecutableLines() { return executableLines; }
ExecutableLineVisitor extends PHPTreeSubscriber { public Set<Integer> getExecutableLines() { return executableLines; } }
ExecutableLineVisitor extends PHPTreeSubscriber { public Set<Integer> getExecutableLines() { return executableLines; } ExecutableLineVisitor(Tree tree); }
ExecutableLineVisitor extends PHPTreeSubscriber { public Set<Integer> getExecutableLines() { return executableLines; } ExecutableLineVisitor(Tree tree); @Override void visitNode(Tree tree); @Override List<Kind> nodesToVisit(); Set<Integer> getExecutableLines(); }
ExecutableLineVisitor extends PHPTreeSubscriber { public Set<Integer> getExecutableLines() { return executableLines; } ExecutableLineVisitor(Tree tree); @Override void visitNode(Tree tree); @Override List<Kind> nodesToVisit(); Set<Integer> getExecutableLines();  }