Completed
Push — master ( 6c409f...23b86d )
by James
11s
created

CacheIntegrationTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

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