sharedFixture['connection'] = $this->loadConnection($pdo, 'sqlite_memory'); } protected function loadConnection($conn, $name) { return Doctrine_Manager::connection($conn, $name); } protected function tearDown() { Doctrine_Manager::getInstance()->getConnection('sqlite_memory')->close(); $this->sharedFixture = NULL; } }