function initialize()
 {
     parent::initialize();
     $this->cache = new Doctrine\Common\Cache\ArrayCache();
     $this->em->getConfiguration()->setMetadataCacheImpl($this->cache);
     $this->em->getConfiguration()->setQueryCacheImpl($this->cache);
     $this->em->getConfiguration()->setResultCacheImpl($this->cache);
 }
<?php

require dirname(__FILE__) . '/Doctrine22TestSuite.php';
$time = microtime(true);
$memory = memory_get_usage(true);
$test = new Doctrine22TestSuite();
$test->initialize();
$test->run();
echo sprintf(" %11s | %6.2f |\n", number_format(memory_get_usage(true) - $memory), microtime(true) - $time);