|
@@ 320-326 (lines=7) @@
|
| 317 |
|
self::assertSame($values, $psrCache->getMultiple($generator())); |
| 318 |
|
} |
| 319 |
|
|
| 320 |
|
public function testGetMultipleThrowsExceptionWhenNotArrayOrTraversable() |
| 321 |
|
{ |
| 322 |
|
$this->expectException(InvalidArgumentException::class); |
| 323 |
|
|
| 324 |
|
$psrCache = new SimpleCacheAdapter(new ArrayCache()); |
| 325 |
|
$psrCache->getMultiple(uniqid('string', true)); |
| 326 |
|
} |
| 327 |
|
|
| 328 |
|
/** |
| 329 |
|
* @throws \Exception |
|
@@ 404-410 (lines=7) @@
|
| 401 |
|
$psrCache->setMultiple($values, $ttl); |
| 402 |
|
} |
| 403 |
|
|
| 404 |
|
public function testSetMultipleThrowsExceptionWhenNotArrayOrTraversable() |
| 405 |
|
{ |
| 406 |
|
$this->expectException(InvalidArgumentException::class); |
| 407 |
|
|
| 408 |
|
$psrCache = new SimpleCacheAdapter(new ArrayCache()); |
| 409 |
|
$psrCache->setMultiple(uniqid('string', true)); |
| 410 |
|
} |
| 411 |
|
|
| 412 |
|
/** |
| 413 |
|
* @throws \Psr\SimpleCache\InvalidArgumentException |