Passed
Push — master ( ebb577...c43191 )
by Alexander
03:05
created

ArrayCacheDecoratorTest   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
dl 0
loc 59
c 1
b 0
f 0
rs 10
wmc 10

10 Methods

Rating   Name   Duplication   Size   Complexity  
A createCacheInstance() 0 3 1
A testSetMultipleInvalidKeysNotIterable() 0 4 1
A testGetMultipleInvalidKeys() 0 4 1
A testSetInvalidKey() 0 4 1
A testDeleteMultipleInvalidKeys() 0 4 1
A testDeleteMultipleInvalidKeysNotIterable() 0 4 1
A testDeleteInvalidKey() 0 4 1
A testGetMultipleInvalidKeysNotIterable() 0 4 1
A testGetInvalidKey() 0 4 1
A testHasInvalidKey() 0 4 1
1
<?php
2
3
namespace Yiisoft\Cache\Tests\ArrayCache;
4
5
use Psr\SimpleCache\CacheInterface;
6
use Yiisoft\Cache\ArrayCache;
7
use Yiisoft\Cache\Cache;
8
9
class ArrayCacheDecoratorTest extends ArrayCacheTest
10
{
11
    protected function createCacheInstance(): CacheInterface
12
    {
13
        return new Cache(new ArrayCache());
14
    }
15
16
    public function testGetInvalidKey(): void
17
    {
18
        // Cache decorator allows all types of keys
19
        $this->assertTrue(true);
20
    }
21
22
    public function testSetInvalidKey(): void
23
    {
24
        // Cache decorator allows all types of keys
25
        $this->assertTrue(true);
26
    }
27
28
    public function testDeleteInvalidKey(): void
29
    {
30
        // Cache decorator allows all types of keys
31
        $this->assertTrue(true);
32
    }
33
34
    public function testGetMultipleInvalidKeys(): void
35
    {
36
        // Cache decorator allows all types of keys
37
        $this->assertTrue(true);
38
    }
39
40
    public function testGetMultipleInvalidKeysNotIterable(): void
41
    {
42
        // Cache decorator allows all types of keys
43
        $this->assertTrue(true);
44
    }
45
46
    public function testSetMultipleInvalidKeysNotIterable(): void
47
    {
48
        // Cache decorator allows all types of keys
49
        $this->assertTrue(true);
50
    }
51
52
    public function testDeleteMultipleInvalidKeys(): void
53
    {
54
        // Cache decorator allows all types of keys
55
        $this->assertTrue(true);
56
    }
57
58
    public function testDeleteMultipleInvalidKeysNotIterable(): void
59
    {
60
        // Cache decorator allows all types of keys
61
        $this->assertTrue(true);
62
    }
63
64
    public function testHasInvalidKey(): void
65
    {
66
        // Cache decorator allows all types of keys
67
        $this->assertTrue(true);
68
    }
69
}
70