LineVisitor extends PHPVisitorCheck { public Set<Integer> getLinesOfCode() { return lines; } private  LineVisitor(Tree tree);  LineVisitor(CompilationUnitTree tree); static int linesOfCode(Tree tree); @Override void visitScript(ScriptTree tree); @Override void visitToken(SyntaxToken token); int getLinesOfCodeNumber(); Set<Integer> getLinesOfCode();  }
@Test public void test_lines_of_code() throws Exception { LineVisitor lineVisitor = new LineVisitor(parse(LOC_FILE)); Set<Integer> linesOfCode = lineVisitor.getLinesOfCode(); assertThat(linesOfCode).hasSize(7); assertThat(linesOfCode).contains(13, 17, 19, 20, 21, 22, 23); }