mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Splitting up test suites.
This commit is contained in:
parent
14820fe03f
commit
78ba1d1361
2 changed files with 45 additions and 5 deletions
44
cake/tests/cases/console/all_console_libs.test.php
Normal file
44
cake/tests/cases/console/all_console_libs.test.php
Normal file
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue