SkipTests.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. * @version $Id: $
  21. */
  22. require_once 'PHPUnit/Framework/TestCase.php';
  23. /**
  24. * @category ZendX
  25. * @package ZendX_Db
  26. * @subpackage UnitTests
  27. * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  28. * @license http://framework.zend.com/license/new-bsd New BSD License
  29. */
  30. abstract class ZendX_Db_Skip_CommonTest extends PHPUnit_Framework_TestCase
  31. {
  32. public $message = null;
  33. abstract public function getDriver();
  34. public function setUp()
  35. {
  36. $driver = $this->getDriver();
  37. $message = 'Skipping ' . $this->getDriver();
  38. if ($this->message) {
  39. $message .= ': ' . $this->message;
  40. }
  41. $this->markTestSkipped($message);
  42. }
  43. public function testDb()
  44. {
  45. // this is here only so we have at least one test
  46. }
  47. }
  48. class ZendX_Db_Skip_FirebirdTest extends ZendX_Db_Skip_CommonTest
  49. {
  50. public function getDriver()
  51. {
  52. return 'Firebird';
  53. }
  54. }