$conf = new Zend_Config_Xml(TESTS_PATH . "/config/testconfig.xml"); Zend_Registry::set("pimcore_config_test", $conf); try { $conf = Zend_Registry::get("pimcore_config_system"); } catch (Exception $e) { die("config not present"); } // set timezone if ($conf instanceof Zend_Config) { if ($conf->general->timezone) { date_default_timezone_set($conf->general->timezone); } } // add the tests, which still reside in the original development unit, not in pimcore_phpunit to the include path $includePaths = array(get_include_path()); $includePaths[] = TESTS_PATH . "/models"; $includePaths[] = TESTS_PATH . "/lib"; set_include_path(implode(PATH_SEPARATOR, $includePaths)); // register the tests namespace $autoloader = Zend_Loader_Autoloader::getInstance(); $autoloader->registerNamespace('Test'); //set the pimcore_phpunit to admin mode define("PIMCORE_ADMIN", true); // disable all caching for the tests // @TODO: Do we really want that? Wouldn't we want to test with cache enabled? Pimcore_Model_Cache::disable(); /** * bootstrap is done, phpunit_pimcore is up and running. * It has a database, admin user and a complete config. * We can start running our tests against the phpunit_pimcore instance */