We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39be07b commit 478061fCopy full SHA for 478061f
src/MatchesSnapshots.php
@@ -41,7 +41,7 @@ public function assertMatchesJsonSnapshot($actual)
41
public function assertMatchesFileHashSnapshot($filePath)
42
{
43
if (! file_exists($filePath)) {
44
- throw new Exception('File does not exist');
+ $this->fail('File does not exist');
45
}
46
47
$actual = sha1_file($filePath);
0 commit comments