SkipTests.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 ZendX
  16. * @package ZendX_Db
  17. * @subpackage UnitTests
  18. * @copyright Copyright (c) 2005-2010 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 ZendX_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 ZendX_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 ZendX_Db_Adapter_Skip_FirebirdTest extends Zend_Db_Adapter_Skip_CommonTest
  43. {
  44. public function getDriver()
  45. {
  46. return 'Firebird';
  47. }
  48. }