|
@@ 79-87 (lines=9) @@
|
| 76 |
|
/** |
| 77 |
|
* @group DDC-1350 |
| 78 |
|
*/ |
| 79 |
|
public function testConfigureCache() |
| 80 |
|
{ |
| 81 |
|
$cache = new ArrayCache(); |
| 82 |
|
$config = Setup::createAnnotationMetadataConfiguration([], true, null, $cache); |
| 83 |
|
|
| 84 |
|
self::assertSame($cache, $config->getResultCacheImpl()); |
| 85 |
|
self::assertSame($cache, $config->getMetadataCacheImpl()); |
| 86 |
|
self::assertSame($cache, $config->getQueryCacheImpl()); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
/** |
| 90 |
|
* @group DDC-3190 |
|
@@ 92-100 (lines=9) @@
|
| 89 |
|
/** |
| 90 |
|
* @group DDC-3190 |
| 91 |
|
*/ |
| 92 |
|
public function testConfigureCacheCustomInstance() |
| 93 |
|
{ |
| 94 |
|
$cache = $this->createMock(Cache::class); |
| 95 |
|
$config = Setup::createConfiguration([], null, $cache); |
| 96 |
|
|
| 97 |
|
self::assertSame($cache, $config->getResultCacheImpl()); |
| 98 |
|
self::assertSame($cache, $config->getMetadataCacheImpl()); |
| 99 |
|
self::assertSame($cache, $config->getQueryCacheImpl()); |
| 100 |
|
} |
| 101 |
|
|
| 102 |
|
private function makeTemporaryDirectory() : string |
| 103 |
|
{ |