@Test public void test_class() throws Exception { CounterVisitor counterVisitor = new CounterVisitor(parse("metrics/classes.php")); assertThat(counterVisitor.getClassNumber()).isEqualTo(4); }
public int getClassNumber() { return classCounter; }
CounterVisitor extends PHPSubscriptionCheck { public int getClassNumber() { return classCounter; } }
CounterVisitor extends PHPSubscriptionCheck { public int getClassNumber() { return classCounter; } CounterVisitor(Tree tree); }
CounterVisitor extends PHPSubscriptionCheck { public int getClassNumber() { return classCounter; } CounterVisitor(Tree tree); @Override List<Kind> nodesToVisit(); @Override void visitNode(Tree tree); int getFunctionNumber(); int getStatementNumber(); int getClassNumber(); }
CounterVisitor extends PHPSubscriptionCheck { public int getClassNumber() { return classCounter; } CounterVisitor(Tree tree); @Override List<Kind> nodesToVisit(); @Override void visitNode(Tree tree); int getFunctionNumber(); int getStatementNumber(); int getClassNumber();  }