CacheIntegrationTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 3
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createSimpleCache() 0 4 1
A setUp() 0 10 1
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