Skip to content

Commit

Permalink
ignore untestable code
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed Sep 27, 2021
1 parent 1e351cf commit 228453a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Helper/CacheableBicDictionaryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ private function cacheResult(IbanInterface $iban, string $bic): void
private function getCached(IbanInterface $iban): string
{
if (!$this->isCached($iban)) {
// @codeCoverageIgnoreStart
throw new CacheException("There is no cache for IBAN {$iban}");
// @codeCoverageIgnoreEnd
}

return $this->cache[$iban->asString()];
Expand Down

0 comments on commit 228453a

Please sign in to comment.