themehandler better test failure feedback

This commit is contained in:
odain
2020-06-08 10:57:57 +02:00
parent d82086240b
commit f5886f603b

View File

@@ -362,7 +362,12 @@ JSON;
if ($CompileCSSFromSASSCount==1)
{
$this->assertEquals(file_get_contents(APPROOT . $expected_maincss_path), file_get_contents($cssPath));
$sExpectedMainCssFile = APPROOT.$expected_maincss_path;
if (!is_file($sExpectedMainCssFile))
{
$this->assertTrue(false, "Cannot find expected main css file $sExpectedMainCssFile");
}
$this->assertEquals(file_get_contents($sExpectedMainCssFile), file_get_contents($cssPath));
}
}