1
0
mirror of synced 2025-01-18 14:31:40 +03:00

DCOM-93 - Allow to check testsuite with any constructor-less cache implementation

This commit is contained in:
Benjamin Eberlei 2012-01-03 19:01:53 +01:00
parent a07fc515c7
commit ef8703e3e9

View File

@ -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)) {