Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray authored and github-actions[bot] committed Jan 12, 2025
1 parent e0e6f4a commit 1d5a89d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Handlers/SignatureDeduplicationHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
$this->handler->close();
$lines = file($this->deduplicationStore, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
if ($lines === false) {
throw new \RuntimeException("Failed to read deduplication store file");
throw new \RuntimeException('Failed to read deduplication store file');
}
$signatures = array_map(fn($line) => explode(':', $line, 2)[1], $lines);
$signatures = array_map(fn ($line) => explode(':', $line, 2)[1], $lines);
expect($signatures)
->toContain($this->signatureGenerator->generate($record1))
->toContain($this->signatureGenerator->generate($record3));
Expand Down Expand Up @@ -109,9 +109,9 @@
// Verify deduplication store contains only the most recent entry
$lines = file($this->deduplicationStore, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
if ($lines === false) {
throw new \RuntimeException("Failed to read deduplication store file");
throw new \RuntimeException('Failed to read deduplication store file');
}
$signatures = array_map(fn($line) => explode(':', $line, 2)[1], $lines);
$signatures = array_map(fn ($line) => explode(':', $line, 2)[1], $lines);
$signature = $this->signatureGenerator->generate($record);
expect(array_count_values($signatures)[$signature])->toBe(1);
});

0 comments on commit 1d5a89d

Please sign in to comment.