AllTestsTest.php 2.0 KB

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