TestProvider.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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_XmlRpc
  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: ValueTest.php 18442 2009-09-30 13:17:48Z lars $
  21. */
  22. abstract class Zend_XmlRpc_TestProvider
  23. {
  24. public static function provideGenerators()
  25. {
  26. return array(
  27. array(new Zend_XmlRpc_Generator_DOMDocument()),
  28. array(new Zend_XmlRpc_Generator_XMLWriter()),
  29. );
  30. }
  31. public static function provideGeneratorsWithAlternateEncodings()
  32. {
  33. return array(
  34. array(new Zend_XmlRpc_Generator_DOMDocument('ISO-8859-1')),
  35. array(new Zend_XmlRpc_Generator_XMLWriter('ISO-8859-1')),
  36. );
  37. }
  38. }