Проект для складирования кода ZF 1.x
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

279 lines
7.0 KiB

<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@zend.com so we can send you a copy immediately.
*
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
abstract class Zend_Db_Skip_CommonTest extends PHPUnit_Framework_TestCase
{
public $message = null;
abstract public function getDriver();
public function setUp()
{
$driver = $this->getDriver();
$message = 'Skipping ' . $this->getDriver();
if ($this->message) {
$message .= ': ' . $this->message;
}
$this->markTestSkipped($message);
}
public function testDb()
{
// this is here only so we have at least one test
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_StaticTest extends Zend_Db_Skip_CommonTest
{
public function getDriver()
{
return 'Static';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_Db2Test extends Zend_Db_Skip_CommonTest
{
public function getDriver()
{
return 'Db2';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_MysqliTest extends Zend_Db_Skip_CommonTest
{
public function getDriver()
{
return 'Mysqli';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_OdbcTest extends Zend_Db_Skip_CommonTest
{
public function getDriver()
{
return 'Odbc';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_OracleTest extends Zend_Db_Skip_CommonTest
{
public function getDriver()
{
return 'Oracle';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_SqlsrvTest extends Zend_Db_Skip_CommonTest
{
public function getDriver()
{
return 'Sqlsrv';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_FirebirdTest extends Zend_Db_Skip_CommonTest
{
public function getDriver()
{
return 'Firebird';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_Pdo_IbmTest extends Zend_Db_Skip_CommonTest
{
function getDriver()
{
return 'Pdo_Ibm';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_Pdo_MssqlTest extends Zend_Db_Skip_CommonTest
{
function getDriver()
{
return 'Pdo_Mssql';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_Pdo_MysqlTest extends Zend_Db_Skip_CommonTest
{
public function getDriver()
{
return 'Pdo_Mysql';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_Pdo_OciTest extends Zend_Db_Skip_CommonTest
{
public function getDriver()
{
return 'Pdo_Oci';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_Pdo_FirebirdTest extends Zend_Db_Skip_CommonTest
{
public function getDriver()
{
return 'Pdo_Firebird';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_Pdo_PgsqlTest extends Zend_Db_Skip_CommonTest
{
public function getDriver()
{
return 'Pdo_Pgsql';
}
}
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @group Zend_Db
*/
class Zend_Db_Skip_Pdo_SqliteTest extends Zend_Db_Skip_CommonTest
{
public function getDriver()
{
return 'Pdo_Sqlite';
}
}