Commit 34601b83 authored by Alexey Gopachenko's avatar Alexey Gopachenko
Browse files

PHP nicer folding error diff!

parent 65a65b36
Showing with 7 additions and 3 deletions
+7 -3
......@@ -1630,8 +1630,10 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
private void testFoldingRegions(@NotNull String verificationFileName, @Nullable String destinationFileName, boolean doCheckCollapseStatus) {
String expectedContent;
try {
expectedContent = FileUtil.loadFile(new File(verificationFileName));
final File verificationFile;
try {
verificationFile = new File(verificationFileName);
expectedContent = FileUtil.loadFile(verificationFile);
}
catch (IOException e) {
throw new RuntimeException(e);
......@@ -1656,7 +1658,9 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
}
}
final String actual = getFoldingDescription(doCheckCollapseStatus);
assertEquals(expectedContent, actual);
if(!expectedContent.equals(actual)) {
throw new FileComparisonFailure(verificationFile.getName(), expectedContent, actual, verificationFile.getPath());
}
}
@Override
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment