public function setUp()
 {
     parent::setUp();
     $dir = $this->connection->getAttribute(Doctrine_Core::ATTR_CACHE_DIR);
     if (file_exists($dir . DIRECTORY_SEPARATOR . "stats.cache")) {
         unlink($dir . DIRECTORY_SEPARATOR . "stats.cache");
     }
     $this->cache = new Doctrine_Cache_Query_Sqlite($this->connection);
     $this->cache->deleteAll();
 }
Example #2
0
 public function setUp()
 {
     parent::setUp();
     $this->manager->setAttribute(Doctrine::ATTR_CACHE, Doctrine::CACHE_NONE);
     $dir = $this->connection->getAttribute(Doctrine::ATTR_CACHE_DIR);
     if (file_exists($dir . DIRECTORY_SEPARATOR . "stats.cache")) {
         unlink($dir . DIRECTORY_SEPARATOR . "stats.cache");
     }
     $this->cache = new Doctrine_Cache_Sqlite($this->objTable);
     $this->cache->deleteAll();
 }
    public function setUp()
    {
        parent::setUp();

        if ( ! isset($this->cache)) {
            $this->cache = new Doctrine_Cache('Array');
            $this->cache->setOption('cacheFile', false);
            $this->cache->setOption('savePropability', 0);

            $this->dbh->setAdapter(new Doctrine_Adapter_Mock());
            $this->dbh->addListener($this->cache);
        }

        $this->cache->reset();
    }
Example #4
0
 public function setUp()
 {
     parent::setUp();
     $this->manager->setAttribute(Doctrine::ATTR_CACHE, Doctrine::CACHE_FILE);
 }
 public function setUp()
 {
     parent::setUp();
     parent::prepareTables();
 }
 public function setUp()
 {
     parent::setUp();
 }