SkipTests.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Db
  17. * @subpackage UnitTests
  18. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. */
  21. /**
  22. * PHPUnit test case
  23. */
  24. require_once 'PHPUnit/Framework/TestCase.php';
  25. /**
  26. * @package Zend_Db
  27. * @subpackage UnitTests
  28. */
  29. abstract class Zend_Db_Adapter_Skip_CommonTest extends PHPUnit_Framework_TestCase
  30. {
  31. abstract public function getDriver();
  32. public function setUp()
  33. {
  34. $driver = $this->getDriver();
  35. $this->markTestSkipped("Testing Zend_Db_Adapter_$driver is not enabled in TestConfiguration.php");
  36. }
  37. public function testAdapter()
  38. {
  39. // this is here only so we have at least one test
  40. }
  41. }
  42. class Zend_Db_Adapter_Skip_Db2Test extends Zend_Db_Adapter_Skip_CommonTest
  43. {
  44. public function getDriver()
  45. {
  46. return 'Db2';
  47. }
  48. }
  49. class Zend_Db_Adapter_Skip_OracleTest extends Zend_Db_Adapter_Skip_CommonTest
  50. {
  51. public function getDriver()
  52. {
  53. return 'Oracle';
  54. }
  55. }
  56. class Zend_Db_Adapter_Skip_FirebirdTest extends Zend_Db_Adapter_Skip_CommonTest
  57. {
  58. public function getDriver()
  59. {
  60. return 'Firebird';
  61. }
  62. }
  63. class Zend_Db_Adapter_Skip_MysqliTest extends Zend_Db_Adapter_Skip_CommonTest
  64. {
  65. public function getDriver()
  66. {
  67. return 'Mysqli';
  68. }
  69. }
  70. class Zend_Db_Adapter_Skip_Pdo_MssqlTest extends Zend_Db_Adapter_Skip_CommonTest
  71. {
  72. function getDriver()
  73. {
  74. return 'Pdo_Mssql';
  75. }
  76. }
  77. class Zend_Db_Adapter_Skip_Pdo_MysqlTest extends Zend_Db_Adapter_Skip_CommonTest
  78. {
  79. public function getDriver()
  80. {
  81. return 'Pdo_Mysql';
  82. }
  83. }
  84. class Zend_Db_Adapter_Skip_Pdo_OciTest extends Zend_Db_Adapter_Skip_CommonTest
  85. {
  86. public function getDriver()
  87. {
  88. return 'Pdo_Oci';
  89. }
  90. }
  91. class Zend_Db_Adapter_Skip_Pdo_FirebirdTest extends Zend_Db_Adapter_Skip_CommonTest
  92. {
  93. public function getDriver()
  94. {
  95. return 'Pdo_Firebird';
  96. }
  97. }
  98. class Zend_Db_Adapter_Skip_Pdo_PgsqlTest extends Zend_Db_Adapter_Skip_CommonTest
  99. {
  100. public function getDriver()
  101. {
  102. return 'Pdo_Pgsql';
  103. }
  104. }
  105. class Zend_Db_Adapter_Skip_Pdo_SqliteTest extends Zend_Db_Adapter_Skip_CommonTest
  106. {
  107. public function getDriver()
  108. {
  109. return 'Pdo_Sqlite';
  110. }
  111. }