NullTest.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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_Queue
  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. * The adapter test class provides a universal test class for all of the
  24. * abstract methods.
  25. *
  26. * All methods marked not supported are explictly checked for for throwing
  27. * an exception.
  28. */
  29. /** PHPUnit Test Case */
  30. require_once 'PHPUnit/Framework/TestCase.php';
  31. /** TestHelp.php */
  32. require_once dirname(__FILE__) . '/../../../TestHelper.php';
  33. /** Zend_Queue */
  34. require_once 'Zend/Queue.php';
  35. /** Zend_Queue */
  36. require_once 'Zend/Queue/Message.php';
  37. /** Zend_Queue_Message_Test */
  38. require_once 'MessageTestClass.php';
  39. /** Base Adapter test class */
  40. require_once dirname(__FILE__) . '/AdapterTest.php';
  41. /**
  42. * @category Zend
  43. * @package Zend_Queue
  44. * @subpackage UnitTests
  45. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  46. * @license http://framework.zend.com/license/new-bsd New BSD License
  47. * @group Zend_Queue
  48. */
  49. class Zend_Queue_Adapter_NullTest extends Zend_Queue_Adapter_AdapterTest
  50. {
  51. /**
  52. * getAdapterName() is an method to help make AdapterTest work with any
  53. * new adapters
  54. *
  55. * You must overload this method
  56. *
  57. * @return string
  58. */
  59. public function getAdapterName()
  60. {
  61. return 'Null';
  62. }
  63. /**
  64. * getAdapterName() is an method to help make AdapterTest work with any
  65. * new adapters
  66. *
  67. * You may overload this method. The default return is
  68. * 'Zend_Queue_Adapter_' . $this->getAdapterName()
  69. *
  70. * @return string
  71. */
  72. public function getAdapterFullName()
  73. {
  74. return 'Zend_Queue_Adapter_' . $this->getAdapterName();
  75. }
  76. public function getTestConfig()
  77. {
  78. return array('driverOptions' => array());
  79. }
  80. // test the constants
  81. public function testConst()
  82. {
  83. }
  84. }