Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
include_once 'TestAuthContainer.php';
4
include_once 'Auth/Container/DB.php';
5
 
6
 
7
class DBContainer extends TestAuthContainer {
8
 
9
 
10
    function &getContainer() {
11
        static $container;
12
 
13
        if(!isset($container)){
14
            include 'auth_container_db_options.php';
15
            $container = new Auth_Container_DB($options);
16
            // Catch if DB connection cannot be made
17
            $res = $container->_prepare();
18
        }
19
 
20
        if (!DB::isConnection($container->db)) {
21
            $this->markTestSkipped("DB is not a connection object, check dsn");
22
        }
23
 
24
        return($container);
25
    }
26
 
27
    function &getExtraOptions() {
28
        include 'auth_container_db_options.php';
29
        return($extra_options);
30
    }
31
}
32
 
33
 
34
 
35
 
36
?>