Skip to content

Commit 0c9c64c

Browse files
Nils LangnerNils Langner
authored andcommitted
Added ImageDeviationException as we need this to create great reports
1 parent 74f433e commit 0c9c64c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/VisualCeption.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function dontSeeVisualChanges($identifier, $elementID = null, $excludeEle
9999
if ($deviationResult["deviation"] > $this->maximumDeviation) {
100100
$compareScreenshotPath = $this->getDeviationScreenshotPath($identifier);
101101
$deviationResult["deviationImage"]->writeImage($compareScreenshotPath);
102-
$this->assertTrue(false, "The deviation of the taken screenshot is too high (" . $deviationResult["deviation"] . "%).\nSee $compareScreenshotPath for a deviation screenshot.");
102+
throw new ImageDeviationException("The deviation of the taken screenshot is too hight (" . $deviationResult["deviation"] . "%).\nSee $compareScreenshotPath for a deviation screenshot.", "pic1", "pic2", $compareScreenshotPath);
103103
}
104104
}
105105
}

0 commit comments

Comments
 (0)