AllTests.php 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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-2015 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. if (!defined('PHPUnit_MAIN_METHOD')) {
  23. define('PHPUnit_MAIN_METHOD', 'Zend_Controller_AllTests::main');
  24. }
  25. require_once 'ActionTest.php';
  26. require_once 'Action/HelperBrokerTest.php';
  27. require_once 'Action/Helper/AllTests.php';
  28. require_once 'Dispatcher/StandardTest.php';
  29. require_once 'FrontTest.php';
  30. require_once 'Plugin/ActionStackTest.php';
  31. require_once 'Plugin/BrokerTest.php';
  32. require_once 'Plugin/ErrorHandlerTest.php';
  33. require_once 'Plugin/PutHandlerTest.php';
  34. require_once 'Request/Apache404Test.php';
  35. require_once 'Request/HttpTest.php';
  36. require_once 'Request/HttpTestCaseTest.php';
  37. require_once 'Request/SimpleTest.php';
  38. require_once 'Response/HttpTest.php';
  39. require_once 'Response/HttpTestCaseTest.php';
  40. require_once 'Router/RouteTest.php';
  41. require_once 'Router/Route/ModuleTest.php';
  42. require_once 'Router/Route/RegexTest.php';
  43. require_once 'Router/Route/StaticTest.php';
  44. require_once 'Router/Route/HostnameTest.php';
  45. require_once 'Router/Route/ChainTest.php';
  46. require_once 'Router/RewriteTest.php';
  47. /**
  48. * @category Zend
  49. * @package Zend_Controller
  50. * @subpackage UnitTests
  51. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  52. * @license http://framework.zend.com/license/new-bsd New BSD License
  53. * @group Zend_Controller
  54. */
  55. class Zend_Controller_AllTests
  56. {
  57. public static function main()
  58. {
  59. PHPUnit_TextUI_TestRunner::run(self::suite());
  60. }
  61. public static function suite()
  62. {
  63. $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Controller');
  64. $suite->addTestSuite('Zend_Controller_ActionTest');
  65. $suite->addTestSuite('Zend_Controller_Action_HelperBrokerTest');
  66. $suite->addTest(Zend_Controller_Action_Helper_AllTests::suite());
  67. $suite->addTestSuite('Zend_Controller_Dispatcher_StandardTest');
  68. $suite->addTestSuite('Zend_Controller_FrontTest');
  69. $suite->addTestSuite('Zend_Controller_Plugin_ActionStackTest');
  70. $suite->addTestSuite('Zend_Controller_Plugin_BrokerTest');
  71. $suite->addTestSuite('Zend_Controller_Plugin_ErrorHandlerTest');
  72. $suite->addTestSuite('Zend_Controller_Plugin_PutHandlerTest');
  73. $suite->addTestSuite('Zend_Controller_Request_Apache404Test');
  74. $suite->addTestSuite('Zend_Controller_Request_HttpTest');
  75. $suite->addTestSuite('Zend_Controller_Request_HttpTestCaseTest');
  76. $suite->addTestSuite('Zend_Controller_Request_SimpleTest');
  77. $suite->addTestSuite('Zend_Controller_Response_HttpTest');
  78. $suite->addTestSuite('Zend_Controller_Response_HttpTestCaseTest');
  79. $suite->addTestSuite('Zend_Controller_Router_RouteTest');
  80. $suite->addTestSuite('Zend_Controller_Router_Route_ModuleTest');
  81. $suite->addTestSuite('Zend_Controller_Router_Route_RegexTest');
  82. $suite->addTestSuite('Zend_Controller_Router_Route_StaticTest');
  83. $suite->addTestSuite('Zend_Controller_Router_Route_HostnameTest');
  84. $suite->addTestSuite('Zend_Controller_Router_Route_ChainTest');
  85. $suite->addTestSuite('Zend_Controller_Router_RewriteTest');
  86. return $suite;
  87. }
  88. }
  89. if (PHPUnit_MAIN_METHOD == 'Zend_Controller_AllTests::main') {
  90. Zend_Controller_AllTests::main();
  91. }