function initialize() { parent::initialize(); $this->cache = new Doctrine_Cache_Array(); $this->manager->setAttribute(Doctrine_Core::ATTR_QUERY_CACHE, $this->cache); $this->manager->setAttribute(Doctrine_Core::ATTR_RESULT_CACHE, $this->cache); }
<?php require dirname(__FILE__) . '/Doctrine12TestSuite.php'; $time = microtime(true); $memory = memory_get_usage(true); $test = new Doctrine12TestSuite(); $test->initialize(); $test->run(); echo sprintf(" %11s | %6.2f |\n", number_format(memory_get_usage(true) - $memory), microtime(true) - $time);