1<?php 2 3include_once 'TestAuthContainer.php'; 4include_once 'Auth/Container/DB.php'; 5 6 7class 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?> 37