|
@@ 68-76 (lines=9) @@
|
| 65 |
|
]; |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
public function testConstructorThrowsExceptionWhenNotMultiOperationCacheIsUsed() |
| 69 |
|
{ |
| 70 |
|
/** @var NotMultiOperationCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */ |
| 71 |
|
$doctrineCache = $this->createMock(NotMultiOperationCache::class); |
| 72 |
|
|
| 73 |
|
$this->expectException(CacheException::class); |
| 74 |
|
$this->expectExceptionMessage('not support multiple operations'); |
| 75 |
|
new SimpleCacheAdapter($doctrineCache); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
public function testConstructorThrowsExceptionWhenNotClearableCacheIsUsed() |
| 79 |
|
{ |
|
@@ 78-86 (lines=9) @@
|
| 75 |
|
new SimpleCacheAdapter($doctrineCache); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
public function testConstructorThrowsExceptionWhenNotClearableCacheIsUsed() |
| 79 |
|
{ |
| 80 |
|
/** @var NotClearableCache|\PHPUnit_Framework_MockObject_MockObject $doctrineCache */ |
| 81 |
|
$doctrineCache = $this->createMock(NotClearableCache::class); |
| 82 |
|
|
| 83 |
|
$this->expectException(CacheException::class); |
| 84 |
|
$this->expectExceptionMessage('not clearable'); |
| 85 |
|
new SimpleCacheAdapter($doctrineCache); |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
/** |
| 89 |
|
* @throws \Psr\SimpleCache\InvalidArgumentException |