Skip to content

Commit

Permalink
Merge pull request #14 from Roave/clean-up-integration-test
Browse files Browse the repository at this point in the history
Clean up integration test
  • Loading branch information
Ocramius authored Jan 19, 2017
2 parents aedceec + 33a1167 commit 6c409f9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/unit/CacheIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,24 @@
use Doctrine\Common\Cache\ArrayCache;
use Roave\DoctrineSimpleCache\SimpleCacheAdapter;

/**
* @coversNothing
*/
final class CacheIntegrationTest extends SimpleCacheTest
{
/**
* @return \Psr\SimpleCache\CacheInterface that is used in the tests
*/
public function createSimpleCache()
public function createSimpleCache() : \Psr\SimpleCache\CacheInterface
{
$doctrineCache = new ArrayCache();

return new SimpleCacheAdapter($doctrineCache);
return new SimpleCacheAdapter(new ArrayCache());
}

protected function setUp()
protected function setUp() : void
{
parent::setUp();

// @todo: Let's make these tests passed!
// @todo: Let's make these tests pass
$this->skippedTests['testSetTtl'] = true;
$this->skippedTests['testSetExpiredTtl'] = true;
$this->skippedTests['testSetMultipleTtl'] = true;
Expand Down

0 comments on commit 6c409f9

Please sign in to comment.