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['testSetTtl'] = true; |
29
|
|
|
$this->skippedTests['testSetExpiredTtl'] = true; |
30
|
|
|
$this->skippedTests['testSetMultipleTtl'] = true; |
31
|
|
|
$this->skippedTests['testSetMultipleExpiredTtl'] = true; |
32
|
|
|
$this->skippedTests['testSetMultipleWithGenerator'] = true; |
33
|
|
|
$this->skippedTests['testGetMultipleWithGenerator'] = true; |
34
|
|
|
$this->skippedTests['testGetInvalidKeys'] = true; |
35
|
|
|
$this->skippedTests['testGetMultipleInvalidKeys'] = true; |
36
|
|
|
$this->skippedTests['testGetMultipleNoIterable'] = true; |
37
|
|
|
$this->skippedTests['testSetInvalidKeys'] = true; |
38
|
|
|
$this->skippedTests['testSetMultipleInvalidKeys'] = true; |
39
|
|
|
$this->skippedTests['testSetMultipleNoIterable'] = true; |
40
|
|
|
$this->skippedTests['testHasInvalidKeys'] = true; |
41
|
|
|
$this->skippedTests['testDeleteInvalidKeys'] = true; |
42
|
|
|
$this->skippedTests['testDeleteMultipleInvalidKeys'] = true; |
43
|
|
|
$this->skippedTests['testDeleteMultipleNoIterable'] = true; |
44
|
|
|
$this->skippedTests['testSetInvalidTtl'] = true; |
45
|
|
|
$this->skippedTests['testSetMultipleInvalidTtl'] = true; |
46
|
|
|
$this->skippedTests['testObjectDoesNotChangeInCache'] = true; |
47
|
|
|
$this->skippedTests['testDataTypeBoolean'] = true; |
48
|
|
|
} |
49
|
|
|
} |
50
|
|
|
|