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/DBLite.php';
5
 
6
 
7
class DBLiteContainer extends TestAuthContainer {
8
 
9
    function &getContainer() {
10
        static $container;
11
        #print "In DBContainer::getContainer {$this->skip_tests}\n";
12
        if(!isset($container)){
13
            include 'auth_container_db_options.php';
14
            $container = new Auth_Container_DBLite($options);
15
            // Catch if DB connection cannot be made
16
            $res = $container->_prepare();
17
        }
18
 
19
        if(!DB::isConnection($container->db)){
20
            $this->markTestSkipped("DB is not a connection object, check dsn");
21
        }
22
        return($container);
23
    }
24
 
25
    function &getExtraOptions() {
26
        include 'auth_container_db_options.php';
27
        return($extra_options);
28
    }
29
}
30
 
31
 
32
 
33
 
34
?>