{
$this->markTestSkipped('The ' . $this->adapter . ' adapter is not available');
}
-
}
{
protected function setUp()
{
- list($this->_conn,) = $this->sharedFixture->getConnection();
+ list($this->_conn,) = Horde_Db_AllTests::$connFactory->getConnection();
}
protected function tearDown()
$col = new Horde_Db_Adapter_Mysql_Column('name', '', 'blob(255)');
$this->assertEquals('', $col->getDefault());
}
-
}
{
protected function setUp()
{
- list($this->_conn,) = $this->sharedFixture->getConnection();
+ list($this->_conn,) = Horde_Db_AllTests::$connFactory->getConnection();
}
protected function tearDown()
public function testOffsetUnset()
{
}
-
}
protected function setUp()
{
- $this->sharedFixture = $this;
+ Horde_Db_AllTests::$connFactory = $this;
}
-
}
// @todo - add logger instance
protected function setUp()
{
- list($this->_conn, $this->_cache) = $this->sharedFixture->getConnection();
+ list($this->_conn, $this->_cache) = Horde_Db_AllTests::$connFactory->getConnection();
// clear out detritus from any previous test runs.
$this->_dropTestTables();
if ($columns == $indexes) return $index;
}
}
-
}
protected function setUp()
{
- $this->sharedFixture = $this;
+ Horde_Db_AllTests::$connFactory = $this;
}
-
}
// @todo - add logger instance
protected function setUp()
{
- list($this->_conn, $this->_cache) = $this->sharedFixture->getConnection();
+ list($this->_conn, $this->_cache) = Horde_Db_AllTests::$connFactory->getConnection();
// clear out detritus from any previous test runs.
$this->_dropTestTables();
if ($columns == $indexes) return $index;
}
}
-
}
protected function setUp()
{
- $this->sharedFixture = $this;
+ Horde_Db_AllTests::$connFactory = $this;
}
}
// @todo - add logger instance
protected function setUp()
{
- list($this->_conn, $this->_cache) = $this->sharedFixture->getConnection();
+ list($this->_conn, $this->_cache) = Horde_Db_AllTests::$connFactory->getConnection();
// clear out detritus from any previous test runs.
$this->_dropTestTables();
if ($columns == $indexes) return $index;
}
}
-
}
protected function setUp()
{
- $this->sharedFixture = $this;
+ Horde_Db_AllTests::$connFactory = $this;
}
-
}
// @todo - add logger instance
protected function setUp()
{
- list($this->_conn, $this->_cache) = $this->sharedFixture->getConnection();
+ list($this->_conn, $this->_cache) = Horde_Db_AllTests::$connFactory->getConnection();
// clear out detritus from any previous test runs.
$this->_dropTestTables();
protected function setUp()
{
- $this->sharedFixture = $this;
+ Horde_Db_AllTests::$connFactory = $this;
}
-
}
// @todo - add logger instance
protected function setUp()
{
- list($this->_conn, $this->_cache) = $this->sharedFixture->getConnection();
+ list($this->_conn, $this->_cache) = Horde_Db_AllTests::$connFactory->getConnection();
$table = $this->_conn->createTable('unit_tests');
$table->column('integer_value', 'integer', array('limit' => 11, 'default' => 0));
{
protected function setUp()
{
- list($this->_conn,) = $this->sharedFixture->getConnection();
+ list($this->_conn,) = Horde_Db_AllTests::$connFactory->getConnection();
}
public function testConstruct()
{
protected function setUp()
{
- list($this->_conn,) = $this->sharedFixture->getConnection();
+ list($this->_conn,) = Horde_Db_AllTests::$connFactory->getConnection();
}
public function testOffsetUnset()
{
}
-
}
{
protected function setUp()
{
- list($this->_conn,) = $this->sharedFixture->getConnection();
+ list($this->_conn,) = Horde_Db_AllTests::$connFactory->getConnection();
}
protected function tearDown()
$col->setDefault('test');
$this->assertEquals('"col_name" varchar(255) DEFAULT \'test\'', $col->toSql());
}
-
}
{
protected function setUp()
{
- list($this->_conn,) = $this->sharedFixture->getConnection();
+ list($this->_conn,) = Horde_Db_AllTests::$connFactory->getConnection();
}
protected function tearDown()
public function testOffsetUnset()
{
}
-
}
*/
class Horde_Db_AllTests extends Horde_Test_AllTests
{
+ public static $connFactory;
+
/**
* Main entry point for running the suite.
*/
// Set up autoload
set_include_path(dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'lib' . PATH_SEPARATOR . get_include_path());
- if (!spl_autoload_functions()) {
- spl_autoload_register(create_function('$class', '$filename = str_replace(array(\'::\', \'_\'), \'/\', $class); @include_once "$filename.php";'));
- }
+ require_once 'Horde/Test/Autoload.php';
// Build the suite
$suite = new PHPUnit_Framework_TestSuite('Horde Framework - Horde_Db');