Skip to content

Commit

Permalink
Splitting up test suites.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 17, 2010
1 parent 14820fe commit 78ba1d1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 5 deletions.
44 changes: 44 additions & 0 deletions cake/tests/cases/console/all_console_libs.test.php
@@ -0,0 +1,44 @@
<?php
/**
* AllConsoleLibsTest file
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
* @link http://cakephp.org CakePHP(tm) Project
* @package cake
* @subpackage cake.tests.cases
* @since CakePHP(tm) v 2.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/

/**
* AllConsoleLibsTest class
*
* This test group will run all console lib classes.
*
* @package cake
* @subpackage cake.tests.cases.console
*/
class AllConsoleLibsTest extends PHPUnit_Framework_TestSuite {

/**
* suite method, defines tests for this suite.
*
* @return void
*/
public static function suite() {
$suite = new CakeTestSuite('All console lib classes');

$path = CORE_TEST_CASES . DS . 'console' . DS . 'libs' . DS;

$suite->addTestDirectory($path);
return $suite;
}
}
6 changes: 1 addition & 5 deletions cake/tests/cases/console/all_shells.test.php
Expand Up @@ -36,12 +36,8 @@ class AllShellsTest extends PHPUnit_Framework_TestSuite {
public static function suite() {
$suite = new CakeTestSuite('All shell classes');

$path = CORE_TEST_CASES . DS . 'console' . DS . 'libs' . DS;
$path = CORE_TEST_CASES . DS . 'console' . DS . 'shells' . DS;

$suite->addTestFile(CORE_TEST_CASES . DS . 'console' . DS . 'shell_dispatcher.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'console' . DS . 'console_output.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'console' . DS . 'console_error_handler.test.php');
$suite->addTestFile(CORE_TEST_CASES . DS . 'console' . DS . 'console_option_parser.test.php');
$suite->addTestDirectory($path);
return $suite;
}
Expand Down

0 comments on commit 78ba1d1

Please sign in to comment.