public void testInterfaceDeclarationBinding() throws Exception {
String str = "<?php interface A {} ?>";
Program program = createAndParse(str);
InterfaceDeclaration interfaceDeclaration = (InterfaceDeclaration) program
.statements().get(0);
ITypeBinding binding = interfaceDeclaration.resolveTypeBinding();
Assert.assertNotNull(binding);
Assert.assertTrue(binding.getName().equals("A"));
Assert.assertTrue(binding.getKind() == IBinding.TYPE);
Assert.assertTrue(binding.isInterface());