AllConsoleLibsTest.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * AllConsoleLibsTest file
  4. *
  5. * PHP 5
  6. *
  7. * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  8. * Copyright 2005-2010, 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-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
  14. * @link http://cakephp.org CakePHP(tm) Project
  15. * @package cake.tests.cases
  16. * @since CakePHP(tm) v 2.0
  17. * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
  18. */
  19. /**
  20. * AllConsoleLibsTest class
  21. *
  22. * This test group will run all console lib classes.
  23. *
  24. * @package cake.tests.cases.console
  25. */
  26. class AllConsoleLibsTest extends PHPUnit_Framework_TestSuite {
  27. /**
  28. * suite method, defines tests for this suite.
  29. *
  30. * @return void
  31. */
  32. public static function suite() {
  33. $suite = new CakeTestSuite('All console lib classes');
  34. $path = CORE_TEST_CASES . DS . 'Console';
  35. foreach (new DirectoryIterator(dirname(__FILE__)) as $file) {
  36. if (!$file->isFile() || strpos($file, 'All') === 0) {
  37. continue;
  38. }
  39. $suite->addTestFile($file->getRealPath());
  40. }
  41. return $suite;
  42. }
  43. }