ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PDOTest.php
Go to the documentation of this file.
1<?php
2
4
5abstract class PDOTest extends AbstractTest {
6
8
9 function getBackend() {
10
11 $this->dropTables('locks');
12 $this->createSchema('locks');
13
14 $pdo = $this->getPDO();
15
16 return new PDO($pdo);
17
18 }
19
20}
An exception for terminatinating execution or to throw for unit testing.
The Lock manager allows you to handle all file-locks centrally.
Definition: PDO.php:17
$pdo
Definition: migrateto20.php:62
trait DbTestHelperTrait
dropTables($tableNames)
Drops tables, if they exist.
getPDO()
Alias for getDb.
createSchema($schemaName)
Uses .sql files from the examples directory to initialize the database.