public void testIsSubTypeCompatibleTrue() throws Exception {
// create a file and get the program's root
String content = "<? interface B {} class A implements /**/B { function foo() { $a = true; $b = $a; } } class C extends A{} /**/$c = new C()?>";
int indexOf = locateElement(content, 0);
ITypeBinding type = getTypeBinding(content);
ITypeBinding otherType = getTypeBinding(content, indexOf + 4);
Assert.assertTrue("Should be sub-type compatible",
otherType.isSubTypeCompatible(type));
}