String str = "<?php class MyClass { static function foo(){} } MyClass::foo($a); ?>";
Program program = createAndParse(str);
ExpressionStatement statement = (ExpressionStatement) program
.statements().get(1);
StaticMethodInvocation staticMethodInvocation = (StaticMethodInvocation) statement
.getExpression();
IMethodBinding methodBinding = staticMethodInvocation
.resolveMethodBinding();
Assert.assertNotNull(methodBinding);
Assert.assertTrue(methodBinding.isConstructor() == false);
Assert.assertTrue(methodBinding.getName().equals("foo"));