From f5886f603b38fca4f1217196a22ea73bc06e326c Mon Sep 17 00:00:00 2001 From: odain Date: Mon, 8 Jun 2020 10:57:57 +0200 Subject: [PATCH] themehandler better test failure feedback --- test/application/ThemeHandlerTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/application/ThemeHandlerTest.php b/test/application/ThemeHandlerTest.php index a579ee4b5..32ad21b9d 100644 --- a/test/application/ThemeHandlerTest.php +++ b/test/application/ThemeHandlerTest.php @@ -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)); } }