1<?php
2
3namespace dokuwiki\plugin\sqlite\test;
4
5use DokuWikiTest;
6/**
7 * Tests all the same things as the abstract test but skips the PDO driver
8 *
9 * @group plugin_sqlite
10 * @group plugins
11 */
12class Sqlite2Test extends AbstractTest {
13
14    public function setup(): void {
15        if(!function_exists('sqlite_open')){
16            $this->markTestSkipped('The sqlite2 extension is not available.');
17        }else{
18            $_ENV['SQLITE_SKIP_PDO'] = true;
19        }
20        parent::setup();
21    }
22
23    public function tearDown():void {
24        $_ENV['SQLITE_SKIP_PDO'] = false;
25        parent::tearDown();
26    }
27
28}
29