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