testsDirectory = testsDirectory.replaceAll("project", map.get(
ProjectSuite.PROJECT).toString());
for (final String fileName : getPDTTFiles(testsDirectory,
PHPCorePerformanceTests.getDefault().getBundle())) {
try {
final CodeAssistPdttFile pdttFile = new CodeAssistPdttFile(
PHPCorePerformanceTests.getDefault().getBundle(),
fileName);
SelectionEngineTests test = new SelectionEngineTests(
fileName) {
protected void setUp() throws Exception {
}
protected void tearDown() throws Exception {
if (testFile != null) {
testFile.delete(true, null);
testFile = null;
}
}
protected void runTest() throws Throwable {
perfMonitor.execute(
"PerformanceTests.testSelectionEngine"
+ "_" + fileName, new Operation() {
public void run() throws Exception {
IModelElement[] elements = getSelection(pdttFile
.getFile());
}
}, 1, 10);
}
};