cacert-testmgr/external/ZendFramework-1.9.5/tests/Zend/Db/SkipTests.php

282 lines
7.1 KiB
PHP
Raw Permalink Normal View History

<?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-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: SkipTests.php 17529 2009-08-10 18:28:43Z ralph $
*/
require_once 'PHPUnit/Framework/TestCase.php';
require_once 'PHPUnit/Util/Filter.php';
PHPUnit_Util_Filter::addFileToFilter(__FILE__);
/**
* @category Zend
* @package Zend_Db
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2009 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-2009 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-2009 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-2009 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-2009 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-2009 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-2009 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-2009 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-2009 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-2009 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-2009 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-2009 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-2009 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-2009 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-2009 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';
}
}