markTestSkipped('mysql Pdo tests are disabled'); } if (self::$init) { $this->getConnection(); } $this->setUpSmarty(__DIR__); parent::setUp(); $this->smarty->setCachingType('pdo'); $this->smarty->addPluginsDir(SMARTY_DIR . '../demo/plugins/'); $this->assertTrue(false !== $this->smarty->loadPlugin('Smarty_CacheResource_Pdotest'), 'loadPlugin() could not load PDO cache resource'); $this->smarty->registerCacheResource('pdo', new Smarty_CacheResource_Pdotest($this->getPDO(), 'output_cache')); } public function testInit() { $this->cleanDirs(); $this->initMysqlCache(); } } }