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