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