Skip to content

Commit 478061f

Browse files
committed
fail instead of an exception
1 parent 39be07b commit 478061f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MatchesSnapshots.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function assertMatchesJsonSnapshot($actual)
4141
public function assertMatchesFileHashSnapshot($filePath)
4242
{
4343
if (! file_exists($filePath)) {
44-
throw new Exception('File does not exist');
44+
$this->fail('File does not exist');
4545
}
4646

4747
$actual = sha1_file($filePath);

0 commit comments

Comments
 (0)