return isCallTo(e, expectedMethods, 1);
}
protected boolean isCallTo(Method e, Method[] expectedMethods) {
PhpClass methodClass = e.getContainingClass();
if(methodClass == null) {
return false;
}
for (Method expectedMethod : expectedMethods) {
// @TODO: its stuff from beginning times :)
if(expectedMethod == null) {
continue;
}
PhpClass containingClass = expectedMethod.getContainingClass();
if (containingClass != null && expectedMethod.getName().equals(e.getName()) && isInstanceOf(methodClass, containingClass)) {
return true;
}
}