|
@@ 91-99 (lines=9) @@
|
| 88 |
|
self::assertSame($default, $psrCache->get($anotherKey, $default)); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
public function testGetWithFalseValueStoredInCache() |
| 92 |
|
{ |
| 93 |
|
$key = uniqid('key', true); |
| 94 |
|
|
| 95 |
|
$psrCache = new SimpleCacheAdapter(new ArrayCache()); |
| 96 |
|
$psrCache->set($key, false); |
| 97 |
|
|
| 98 |
|
self::assertFalse($psrCache->get($key, uniqid('default', true))); |
| 99 |
|
} |
| 100 |
|
|
| 101 |
|
public function testSetProxiesToDoctrineSave() |
| 102 |
|
{ |
|
@@ 147-156 (lines=10) @@
|
| 144 |
|
* @param mixed $ttl |
| 145 |
|
* @dataProvider invalidTTLs |
| 146 |
|
*/ |
| 147 |
|
public function testSetWithInvalidTTL($ttl) |
| 148 |
|
{ |
| 149 |
|
$key = uniqid('key', true); |
| 150 |
|
$value = uniqid('value', true); |
| 151 |
|
|
| 152 |
|
$psrCache = new SimpleCacheAdapter(new ArrayCache()); |
| 153 |
|
|
| 154 |
|
$this->expectException(InvalidArgumentException::class); |
| 155 |
|
$psrCache->set($key, $value, $ttl); |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
public function testDeleteProxiesToDoctrineDelete() |
| 159 |
|
{ |