Completed
Pull Request — master (#15)
by James
06:46
created

CacheIntegrationTest::createSimpleCache()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
declare(strict_types = 1);
3
4
use Cache\IntegrationTests\SimpleCacheTest;
5
use Doctrine\Common\Cache\ArrayCache;
6
use Roave\DoctrineSimpleCache\SimpleCacheAdapter;
7
8
/**
9
 * @coversNothing
10
 */
11
final class CacheIntegrationTest extends SimpleCacheTest
12
{
13
    /**
14
     * @return \Psr\SimpleCache\CacheInterface that is used in the tests
15
     */
16
    public function createSimpleCache() : \Psr\SimpleCache\CacheInterface
17
    {
18
        return new SimpleCacheAdapter(new ArrayCache());
19
    }
20
21
    protected function setUp() : void
22
    {
23
        parent::setUp();
24
25
        // @todo: Let's make these tests pass
26
        $this->skippedTests['testSetTtl'] = true;
27
        $this->skippedTests['testSetExpiredTtl'] = true;
28
        $this->skippedTests['testSetMultipleTtl'] = true;
29
        $this->skippedTests['testSetMultipleExpiredTtl'] = true;
30
        $this->skippedTests['testSetMultipleWithGenerator'] = true;
31
        $this->skippedTests['testGetMultipleWithGenerator'] = true;
32
        $this->skippedTests['testGetMultipleNoIterable'] = true;
33
        $this->skippedTests['testSetMultipleNoIterable'] = true;
34
        $this->skippedTests['testDeleteMultipleNoIterable'] = true;
35
        $this->skippedTests['testSetInvalidTtl'] = true;
36
        $this->skippedTests['testSetMultipleInvalidTtl'] = true;
37
        $this->skippedTests['testObjectDoesNotChangeInCache'] = true;
38
        $this->skippedTests['testDataTypeBoolean'] = true;
39
    }
40
}
41