DCOM-93 - Allow to check testsuite with any constructor-less cache implementation
This commit is contained in:
parent
a07fc515c7
commit
ef8703e3e9
@ -294,7 +294,11 @@ abstract class OrmFunctionalTestCase extends OrmTestCase
|
||||
// the actual database platform used during execution has effect on some
|
||||
// metadata mapping behaviors (like the choice of the ID generation).
|
||||
if (is_null(self::$_metadataCacheImpl)) {
|
||||
self::$_metadataCacheImpl = new \Doctrine\Common\Cache\ArrayCache;
|
||||
if (isset($GLOBALS['DOCTRINE_CACHE_IMPL'])) {
|
||||
self::$_metadataCacheImpl = new $GLOBALS['DOCTRINE_CACHE_IMPL'];
|
||||
} else {
|
||||
self::$_metadataCacheImpl = new \Doctrine\Common\Cache\ArrayCache;
|
||||
}
|
||||
}
|
||||
|
||||
if (is_null(self::$_queryCacheImpl)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user