| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <?php
- /**
- * Zend Framework
- *
- * LICENSE
- *
- * This source file is subject to the new BSD license that is bundled
- * with this package in the file LICENSE.txt.
- * It is also available through the world-wide-web at this URL:
- * http://framework.zend.com/license/new-bsd
- * If you did not receive a copy of the license and are unable to
- * obtain it through the world-wide-web, please send an email
- * to license@zend.com so we can send you a copy immediately.
- *
- * @category Zend
- * @package Zend_Controller
- * @subpackage UnitTests
- * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @version $Id $
- */
- /**
- * Test helper
- */
- require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
- if (!defined('PHPUnit_MAIN_METHOD')) {
- define('PHPUnit_MAIN_METHOD', 'Zend_Controller_AllTests::main');
- }
- require_once 'ActionTest.php';
- require_once 'Action/HelperBrokerTest.php';
- require_once 'Action/Helper/AllTests.php';
- require_once 'Dispatcher/StandardTest.php';
- require_once 'FrontTest.php';
- require_once 'Plugin/ActionStackTest.php';
- require_once 'Plugin/BrokerTest.php';
- require_once 'Plugin/ErrorHandlerTest.php';
- require_once 'Plugin/PutHandlerTest.php';
- require_once 'Request/Apache404Test.php';
- require_once 'Request/HttpTest.php';
- require_once 'Request/HttpTestCaseTest.php';
- require_once 'Request/SimpleTest.php';
- require_once 'Response/HttpTest.php';
- require_once 'Response/HttpTestCaseTest.php';
- require_once 'Router/RouteTest.php';
- require_once 'Router/Route/ModuleTest.php';
- require_once 'Router/Route/RegexTest.php';
- require_once 'Router/Route/StaticTest.php';
- require_once 'Router/Route/HostnameTest.php';
- require_once 'Router/Route/ChainTest.php';
- require_once 'Router/RewriteTest.php';
- /**
- * @category Zend
- * @package Zend_Controller
- * @subpackage UnitTests
- * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- * @group Zend_Controller
- */
- class Zend_Controller_AllTests
- {
- public static function main()
- {
- PHPUnit_TextUI_TestRunner::run(self::suite());
- }
- public static function suite()
- {
- $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Controller');
- $suite->addTestSuite('Zend_Controller_ActionTest');
- $suite->addTestSuite('Zend_Controller_Action_HelperBrokerTest');
- $suite->addTest(Zend_Controller_Action_Helper_AllTests::suite());
- $suite->addTestSuite('Zend_Controller_Dispatcher_StandardTest');
- $suite->addTestSuite('Zend_Controller_FrontTest');
- $suite->addTestSuite('Zend_Controller_Plugin_ActionStackTest');
- $suite->addTestSuite('Zend_Controller_Plugin_BrokerTest');
- $suite->addTestSuite('Zend_Controller_Plugin_ErrorHandlerTest');
- $suite->addTestSuite('Zend_Controller_Plugin_PutHandlerTest');
- $suite->addTestSuite('Zend_Controller_Request_Apache404Test');
- $suite->addTestSuite('Zend_Controller_Request_HttpTest');
- $suite->addTestSuite('Zend_Controller_Request_HttpTestCaseTest');
- $suite->addTestSuite('Zend_Controller_Request_SimpleTest');
- $suite->addTestSuite('Zend_Controller_Response_HttpTest');
- $suite->addTestSuite('Zend_Controller_Response_HttpTestCaseTest');
- $suite->addTestSuite('Zend_Controller_Router_RouteTest');
- $suite->addTestSuite('Zend_Controller_Router_Route_ModuleTest');
- $suite->addTestSuite('Zend_Controller_Router_Route_RegexTest');
- $suite->addTestSuite('Zend_Controller_Router_Route_StaticTest');
- $suite->addTestSuite('Zend_Controller_Router_Route_HostnameTest');
- $suite->addTestSuite('Zend_Controller_Router_Route_ChainTest');
- $suite->addTestSuite('Zend_Controller_Router_RewriteTest');
- return $suite;
- }
- }
- if (PHPUnit_MAIN_METHOD == 'Zend_Controller_AllTests::main') {
- Zend_Controller_AllTests::main();
- }
|