Add some unit tests for DB classes
parent
3ce4f0a839
commit
ecef4cc919
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test class to test rcube_db_mssql class
|
||||||
|
*
|
||||||
|
* @package Tests
|
||||||
|
*/
|
||||||
|
class Framework_DBMssql extends PHPUnit_Framework_TestCase
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class constructor
|
||||||
|
*/
|
||||||
|
function test_class()
|
||||||
|
{
|
||||||
|
$object = new rcube_db_mssql('test');
|
||||||
|
|
||||||
|
$this->assertInstanceOf('rcube_db_mssql', $object, "Class constructor");
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test class to test rcube_db_mysql class
|
||||||
|
*
|
||||||
|
* @package Tests
|
||||||
|
*/
|
||||||
|
class Framework_DBMysql extends PHPUnit_Framework_TestCase
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class constructor
|
||||||
|
*/
|
||||||
|
function test_class()
|
||||||
|
{
|
||||||
|
$object = new rcube_db_mysql('test');
|
||||||
|
|
||||||
|
$this->assertInstanceOf('rcube_db_mysql', $object, "Class constructor");
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test class to test rcube_db_pgsql class
|
||||||
|
*
|
||||||
|
* @package Tests
|
||||||
|
*/
|
||||||
|
class Framework_DBPgsql extends PHPUnit_Framework_TestCase
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class constructor
|
||||||
|
*/
|
||||||
|
function test_class()
|
||||||
|
{
|
||||||
|
$object = new rcube_db_pgsql('test');
|
||||||
|
|
||||||
|
$this->assertInstanceOf('rcube_db_pgsql', $object, "Class constructor");
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test class to test rcube_db_sqlite class
|
||||||
|
*
|
||||||
|
* @package Tests
|
||||||
|
*/
|
||||||
|
class Framework_DBSqlite extends PHPUnit_Framework_TestCase
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class constructor
|
||||||
|
*/
|
||||||
|
function test_class()
|
||||||
|
{
|
||||||
|
$object = new rcube_db_sqlite('test');
|
||||||
|
|
||||||
|
$this->assertInstanceOf('rcube_db_sqlite', $object, "Class constructor");
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test class to test rcube_db_sqlsrv class
|
||||||
|
*
|
||||||
|
* @package Tests
|
||||||
|
*/
|
||||||
|
class Framework_DBSqlsrv extends PHPUnit_Framework_TestCase
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class constructor
|
||||||
|
*/
|
||||||
|
function test_class()
|
||||||
|
{
|
||||||
|
$object = new rcube_db_sqlsrv('test');
|
||||||
|
|
||||||
|
$this->assertInstanceOf('rcube_db_sqlsrv', $object, "Class constructor");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue