AllTests.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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_Controller
  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. */
  21. /**
  22. * Test helper
  23. */
  24. require_once dirname(__FILE__) . '/../../.././../TestHelper.php';
  25. if (!defined('PHPUnit_MAIN_METHOD')) {
  26. define('PHPUnit_MAIN_METHOD', 'Zend_Controller_Action_Helper_AllTests::main');
  27. }
  28. require_once 'Zend/Controller/Action/Helper/ActionStackTest.php';
  29. require_once 'Zend/Controller/Action/Helper/AjaxContextTest.php';
  30. require_once 'Zend/Controller/Action/Helper/AutoCompleteTest.php';
  31. require_once 'Zend/Controller/Action/Helper/ContextSwitchTest.php';
  32. require_once 'Zend/Controller/Action/Helper/FlashMessengerTest.php';
  33. require_once 'Zend/Controller/Action/Helper/JsonTest.php';
  34. require_once 'Zend/Controller/Action/Helper/RedirectorTest.php';
  35. require_once 'Zend/Controller/Action/Helper/UrlTest.php';
  36. require_once 'Zend/Controller/Action/Helper/ViewRendererTest.php';
  37. /**
  38. * @category Zend
  39. * @package Zend_Controller
  40. * @subpackage UnitTests
  41. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  42. * @license http://framework.zend.com/license/new-bsd New BSD License
  43. */
  44. class Zend_Controller_Action_Helper_AllTests
  45. {
  46. public static function main()
  47. {
  48. PHPUnit_TextUI_TestRunner::run(self::suite());
  49. }
  50. public static function suite()
  51. {
  52. $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Controller');
  53. $suite->addTestSuite('Zend_Controller_Action_Helper_ActionStackTest');
  54. $suite->addTestSuite('Zend_Controller_Action_Helper_AutoCompleteTest');
  55. $suite->addTestSuite('Zend_Controller_Action_Helper_ContextSwitchTest');
  56. $suite->addTestSuite('Zend_Controller_Action_Helper_AjaxContextTest');
  57. $suite->addTestSuite('Zend_Controller_Action_Helper_FlashMessengerTest');
  58. $suite->addTestSuite('Zend_Controller_Action_Helper_JsonTest');
  59. $suite->addTestSuite('Zend_Controller_Action_Helper_RedirectorTest');
  60. $suite->addTestSuite('Zend_Controller_Action_Helper_UrlTest');
  61. $suite->addTestSuite('Zend_Controller_Action_Helper_ViewRendererTest');
  62. return $suite;
  63. }
  64. }
  65. if (PHPUnit_MAIN_METHOD == 'Zend_Controller_Action_Helper_AllTests::main') {
  66. Zend_Controller_Action_Helper_AllTests::main();
  67. }