Skip to content

Commit 6c409f9

Browse files
authored
Merge pull request #14 from Roave/clean-up-integration-test
Clean up integration test
2 parents aedceec + 33a1167 commit 6c409f9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test/unit/CacheIntegrationTest.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,24 @@
55
use Doctrine\Common\Cache\ArrayCache;
66
use Roave\DoctrineSimpleCache\SimpleCacheAdapter;
77

8+
/**
9+
* @coversNothing
10+
*/
811
final class CacheIntegrationTest extends SimpleCacheTest
912
{
1013
/**
1114
* @return \Psr\SimpleCache\CacheInterface that is used in the tests
1215
*/
13-
public function createSimpleCache()
16+
public function createSimpleCache() : \Psr\SimpleCache\CacheInterface
1417
{
15-
$doctrineCache = new ArrayCache();
16-
17-
return new SimpleCacheAdapter($doctrineCache);
18+
return new SimpleCacheAdapter(new ArrayCache());
1819
}
1920

20-
protected function setUp()
21+
protected function setUp() : void
2122
{
2223
parent::setUp();
2324

24-
// @todo: Let's make these tests passed!
25+
// @todo: Let's make these tests pass
2526
$this->skippedTests['testSetTtl'] = true;
2627
$this->skippedTests['testSetExpiredTtl'] = true;
2728
$this->skippedTests['testSetMultipleTtl'] = true;

0 commit comments

Comments
 (0)