void () { ExternalResourceManagerEx manager = ExternalResourceManagerEx.getInstanceEx(); String defaultHtmlDoctype = manager.getDefaultHtmlDoctype(getProject()); manager.setDefaultHtmlDoctype(Html5SchemaProvider.getHtml5SchemaLocation(), getProject()); try { myFixture.copyDirectoryToProject("html5", "html5"); myFixture.configureByFiles("html5/" + getTestName(false) + "." + "xhtml"); myFixture.checkHighlighting(true, false, false); } finally { manager.setDefaultHtmlDoctype(defaultHtmlDoctype, getProject()); } }