protected void checkTestResult(PdttFileExt testFile, IStructuredDocument structuredDocument) { List<FileInfo> files = testFile.getExpectedFiles(); for (FileInfo expFile : files) { IFile file = project.findFile(expFile.getName()); assertTrue(file.exists()); String content = structuredDocument.get(); // String newLine = System.getProperty("line.separator"); // content = content.replaceAll(newLine, "").replaceAll(" ", ""); // content = content.replaceAll("\n", "").replaceAll(" ", ""); String diff = PHPCoreTests.compareContentsIgnoreWhitespace(expFile.getContents(), content); if (diff != null) { fail(diff); } } }