CacheIntegrationTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 1
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['testObjectDoesNotChangeInCache'] = true;
29
30
        // https://github.com/php-cache/integration-tests/pull/74/files
31
        $this->skippedTests['testSetMultipleWithIntegerArrayKey'] = true;
32
    }
33
}
34