Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
Increase code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 28, 2020
1 parent 885f87d commit 456acc8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/drupol/memoize/Cache/ArrayAccessCacheItemPoolSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use drupol\memoize\Cache\ArrayAccessCacheItemPool;
use PhpSpec\ObjectBehavior;
use Psr\Cache\CacheItemInterface;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;

class ArrayAccessCacheItemPoolSpec extends ObjectBehavior
Expand Down Expand Up @@ -40,5 +41,12 @@ public function it_is_initializable()
->shouldReturn(
$cache->getItem('1')->get()
);

$this->offsetExists(1)
->shouldReturn(true);

$this
->offsetGet(1)
->shouldReturn('2');
}
}

0 comments on commit 456acc8

Please sign in to comment.