|
@@ 104-112 (lines=9) @@
|
| 101 |
|
self::assertSame($default, $psrCache->get($anotherKey, $default)); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
public function testGetWithFalseValueStoredInCache() |
| 105 |
|
{ |
| 106 |
|
$key = uniqid('key', true); |
| 107 |
|
|
| 108 |
|
$psrCache = new SimpleCacheAdapter(new ArrayCache()); |
| 109 |
|
$psrCache->set($key, false); |
| 110 |
|
|
| 111 |
|
self::assertFalse($psrCache->get($key, uniqid('default', true))); |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
public function testSetProxiesToDoctrineSave() |
| 115 |
|
{ |
|
@@ 160-169 (lines=10) @@
|
| 157 |
|
* @param mixed $ttl |
| 158 |
|
* @dataProvider invalidTTLs |
| 159 |
|
*/ |
| 160 |
|
public function testSetWithInvalidTTL($ttl) |
| 161 |
|
{ |
| 162 |
|
$key = uniqid('key', true); |
| 163 |
|
$value = uniqid('value', true); |
| 164 |
|
|
| 165 |
|
$psrCache = new SimpleCacheAdapter(new ArrayCache()); |
| 166 |
|
|
| 167 |
|
$this->expectException(InvalidArgumentException::class); |
| 168 |
|
$psrCache->set($key, $value, $ttl); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
public function testDeleteProxiesToDoctrineDelete() |
| 172 |
|
{ |