SkipTests.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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. * @version $Id $
  21. */
  22. /**
  23. * PHPUnit test case
  24. */
  25. require_once 'PHPUnit/Framework/TestCase.php';
  26. /**
  27. * @category Zend
  28. * @package Zend_Db
  29. * @subpackage UnitTests
  30. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  31. * @license http://framework.zend.com/license/new-bsd New BSD License
  32. * @group Zend_Db
  33. * @group Zend_Db_Adapter
  34. */
  35. abstract class Zend_Db_Adapter_Skip_CommonTest extends PHPUnit_Framework_TestCase
  36. {
  37. abstract public function getDriver();
  38. public function setUp()
  39. {
  40. $driver = $this->getDriver();
  41. $this->markTestSkipped("Testing Zend_Db_Adapter_$driver is not enabled in TestConfiguration.php");
  42. }
  43. public function testAdapter()
  44. {
  45. // this is here only so we have at least one test
  46. }
  47. }
  48. /**
  49. * @category Zend
  50. * @package Zend_Db
  51. * @subpackage UnitTests
  52. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  53. * @license http://framework.zend.com/license/new-bsd New BSD License
  54. * @group Zend_Db
  55. */
  56. class Zend_Db_Adapter_Skip_Db2Test extends Zend_Db_Adapter_Skip_CommonTest
  57. {
  58. public function getDriver()
  59. {
  60. return 'Db2';
  61. }
  62. }
  63. /**
  64. * @category Zend
  65. * @package Zend_Db
  66. * @subpackage UnitTests
  67. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  68. * @license http://framework.zend.com/license/new-bsd New BSD License
  69. * @group Zend_Db
  70. */
  71. class Zend_Db_Adapter_Skip_OracleTest extends Zend_Db_Adapter_Skip_CommonTest
  72. {
  73. public function getDriver()
  74. {
  75. return 'Oracle';
  76. }
  77. }
  78. /**
  79. * @category Zend
  80. * @package Zend_Db
  81. * @subpackage UnitTests
  82. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  83. * @license http://framework.zend.com/license/new-bsd New BSD License
  84. * @group Zend_Db
  85. */
  86. class Zend_Db_Adapter_Skip_FirebirdTest extends Zend_Db_Adapter_Skip_CommonTest
  87. {
  88. public function getDriver()
  89. {
  90. return 'Firebird';
  91. }
  92. }
  93. /**
  94. * @category Zend
  95. * @package Zend_Db
  96. * @subpackage UnitTests
  97. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  98. * @license http://framework.zend.com/license/new-bsd New BSD License
  99. * @group Zend_Db
  100. */
  101. class Zend_Db_Adapter_Skip_MysqliTest extends Zend_Db_Adapter_Skip_CommonTest
  102. {
  103. public function getDriver()
  104. {
  105. return 'Mysqli';
  106. }
  107. }
  108. /**
  109. * @category Zend
  110. * @package Zend_Db
  111. * @subpackage UnitTests
  112. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  113. * @license http://framework.zend.com/license/new-bsd New BSD License
  114. * @group Zend_Db
  115. */
  116. class Zend_Db_Adapter_Skip_Pdo_MssqlTest extends Zend_Db_Adapter_Skip_CommonTest
  117. {
  118. function getDriver()
  119. {
  120. return 'Pdo_Mssql';
  121. }
  122. }
  123. /**
  124. * @category Zend
  125. * @package Zend_Db
  126. * @subpackage UnitTests
  127. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  128. * @license http://framework.zend.com/license/new-bsd New BSD License
  129. * @group Zend_Db
  130. */
  131. class Zend_Db_Adapter_Skip_Pdo_MysqlTest extends Zend_Db_Adapter_Skip_CommonTest
  132. {
  133. public function getDriver()
  134. {
  135. return 'Pdo_Mysql';
  136. }
  137. }
  138. /**
  139. * @category Zend
  140. * @package Zend_Db
  141. * @subpackage UnitTests
  142. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  143. * @license http://framework.zend.com/license/new-bsd New BSD License
  144. * @group Zend_Db
  145. */
  146. class Zend_Db_Adapter_Skip_Pdo_OciTest extends Zend_Db_Adapter_Skip_CommonTest
  147. {
  148. public function getDriver()
  149. {
  150. return 'Pdo_Oci';
  151. }
  152. }
  153. /**
  154. * @category Zend
  155. * @package Zend_Db
  156. * @subpackage UnitTests
  157. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  158. * @license http://framework.zend.com/license/new-bsd New BSD License
  159. * @group Zend_Db
  160. */
  161. class Zend_Db_Adapter_Skip_Pdo_FirebirdTest extends Zend_Db_Adapter_Skip_CommonTest
  162. {
  163. public function getDriver()
  164. {
  165. return 'Pdo_Firebird';
  166. }
  167. }
  168. /**
  169. * @category Zend
  170. * @package Zend_Db
  171. * @subpackage UnitTests
  172. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  173. * @license http://framework.zend.com/license/new-bsd New BSD License
  174. * @group Zend_Db
  175. */
  176. class Zend_Db_Adapter_Skip_Pdo_PgsqlTest extends Zend_Db_Adapter_Skip_CommonTest
  177. {
  178. public function getDriver()
  179. {
  180. return 'Pdo_Pgsql';
  181. }
  182. }
  183. /**
  184. * @category Zend
  185. * @package Zend_Db
  186. * @subpackage UnitTests
  187. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  188. * @license http://framework.zend.com/license/new-bsd New BSD License
  189. * @group Zend_Db
  190. */
  191. class Zend_Db_Adapter_Skip_Pdo_SqliteTest extends Zend_Db_Adapter_Skip_CommonTest
  192. {
  193. public function getDriver()
  194. {
  195. return 'Pdo_Sqlite';
  196. }
  197. }