Assert.assertTrue(fieldBinding.isField());
}
public void testIncludeBinding() throws Exception {
String str = "<?php include('myFile.php');?>";
Program program = createAndParse(str);
IFile myFile = project.getFile("myFile.php");
myFile.create(new ByteArrayInputStream(new byte[] {}), true,
new NullProgressMonitor());
try {
ExpressionStatement statement = (ExpressionStatement) program
.statements().get(0);
Include include = (Include) statement.getExpression();
IBinding sourceBinding = include.resolveBinding();