Skip to content

Commit

Permalink
fix phpstan again
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Aug 7, 2024
1 parent 2011d43 commit 9a336a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Verify/VerifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ public function testVerifyValidate(): void
$checks = config('verify.validation');
foreach ($checks as $class => $value) {
$file = (new \ReflectionClass($class))->getFileName();
if ($file === false || !file_exists($file) || sha1_file($file) !== $value) {
if ($file === false || !file_exists($file)) {
self::fail(sprintf("Validation failed for %s: file not found", $class));
}
if (sha1_file($file) !== $value) {
self::fail(sprintf("Validation failed for %s: expected '%s'", $class, sha1_file($file)));
}
}
Expand Down

0 comments on commit 9a336a5

Please sign in to comment.