3 require_once 'Sabre/TestUtil.php';
4 require_once 'Sabre/CalDAV/TestUtil.php';
5 require_once 'Sabre/CalDAV/Backend/AbstractPDOTest.php';
7 class Sabre_CalDAV_Backend_PDOMySQLTest extends Sabre_CalDAV_Backend_AbstractPDOTest {
11 if (!SABRE_HASMYSQL) $this->markTestSkipped('MySQL driver is not available, or not properly configured');
12 $pdo = Sabre_TestUtil::getMySQLDB();
13 if (!$pdo) $this->markTestSkipped('Could not connect to mysql database');
15 $pdo->query('DROP TABLE IF EXISTS calendarobjects, calendars');
19 file_get_contents(__DIR__ . '/../../../../examples/sql/mysql.calendars.sql')
22 foreach($queries as $query) {
23 $query = trim($query," \r\n\t");