AllTestsTest.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * AllTests file
  4. *
  5. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  6. * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  7. *
  8. * Licensed under The MIT License
  9. * For full copyright and license information, please see the LICENSE.txt
  10. * Redistributions of files must retain the above copyright notice.
  11. *
  12. * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
  13. * @link http://cakephp.org CakePHP(tm) Project
  14. * @package Cake.Test.Case
  15. * @since CakePHP(tm) v 2.0
  16. * @license http://www.opensource.org/licenses/mit-license.php MIT License
  17. */
  18. /**
  19. * AllTests class
  20. *
  21. * This test group will run all tests.
  22. *
  23. * @package Cake.Test.Case
  24. */
  25. class AllTests extends PHPUnit_Framework_TestSuite {
  26. /**
  27. * Suite define the tests for this suite
  28. *
  29. * @return void
  30. */
  31. public static function suite() {
  32. $suite = new PHPUnit_Framework_TestSuite('All Tests');
  33. $path = CORE_TEST_CASES . DS;
  34. $suite->addTestFile($path . 'BasicsTest.php');
  35. $suite->addTestFile($path . 'AllConsoleTest.php');
  36. $suite->addTestFile($path . 'AllBehaviorsTest.php');
  37. $suite->addTestFile($path . 'AllCacheTest.php');
  38. $suite->addTestFile($path . 'AllComponentsTest.php');
  39. $suite->addTestFile($path . 'AllConfigureTest.php');
  40. $suite->addTestFile($path . 'AllCoreTest.php');
  41. $suite->addTestFile($path . 'AllControllerTest.php');
  42. $suite->addTestFile($path . 'AllDatabaseTest.php');
  43. $suite->addTestFile($path . 'AllErrorTest.php');
  44. $suite->addTestFile($path . 'AllEventTest.php');
  45. $suite->addTestFile($path . 'AllHelpersTest.php');
  46. $suite->addTestFile($path . 'AllLogTest.php');
  47. $suite->addTestFile($path . 'Model' . DS . 'ModelTest.php');
  48. $suite->addTestFile($path . 'AllRoutingTest.php');
  49. $suite->addTestFile($path . 'AllNetworkTest.php');
  50. $suite->addTestFile($path . 'AllTestSuiteTest.php');
  51. $suite->addTestFile($path . 'AllUtilityTest.php');
  52. $suite->addTestFile($path . 'AllViewTest.php');
  53. $suite->addTestFile($path . 'AllI18nTest.php');
  54. return $suite;
  55. }
  56. }