From e061a5335845feeb0e3371c2524b3097ed27ca68 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sat, 9 Jan 2010 11:25:35 -0500 Subject: [PATCH] Removing CakeTestMenu as its been made obsolete. Removing constant use from reporter. --- cake/tests/lib/cake_test_menu.php | 60 ------------------- cake/tests/lib/cake_test_suite_dispatcher.php | 1 - .../tests/lib/reporter/cake_html_reporter.php | 2 +- 3 files changed, 1 insertion(+), 62 deletions(-) delete mode 100644 cake/tests/lib/cake_test_menu.php diff --git a/cake/tests/lib/cake_test_menu.php b/cake/tests/lib/cake_test_menu.php deleted file mode 100644 index 809477fd1..000000000 --- a/cake/tests/lib/cake_test_menu.php +++ /dev/null @@ -1,60 +0,0 @@ - - * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) - * - * Licensed under The Open Group Test Suite License - * Redistributions of files must retain the above copyright notice. - * - * @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org) - * @link https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests - * @package cake - * @subpackage cake.cake.tests.lib - * @since CakePHP(tm) v 1.3 - * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License - */ -class CakeTestMenu { - -/** - * Prints a list of test cases - * - * @return void - * @access public - */ - function testCaseList() { - $class = CakeTestMenu::getTestManager(); - echo call_user_func(array($class, 'getTestCaseList')); - } - -/** - * Prints a list of group tests - * - * @return void - * @access public - */ - function groupTestList() { - $class = CakeTestMenu::getTestManager(); - echo call_user_func(array($class, 'getGroupTestList')); - } - -/** - * Gets the correct test manager for the chosen output. - * - * @return void - */ - function getTestManager() { - switch (CAKE_TEST_OUTPUT) { - case CAKE_TEST_OUTPUT_HTML: - return 'HtmlTestManager'; - case CAKE_TEST_OUTPUT_TEXT: - default: - return 'TextTestManager'; - } - } - -} -?> \ No newline at end of file diff --git a/cake/tests/lib/cake_test_suite_dispatcher.php b/cake/tests/lib/cake_test_suite_dispatcher.php index 52da314c7..7523c6b45 100644 --- a/cake/tests/lib/cake_test_suite_dispatcher.php +++ b/cake/tests/lib/cake_test_suite_dispatcher.php @@ -18,7 +18,6 @@ * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License */ require_once CAKE_TESTS_LIB . 'test_manager.php'; -require_once CAKE_TESTS_LIB . 'cake_test_menu.php'; /** * CakeTestSuiteDispatcher handles web requests to the test suite and runs the correct action. diff --git a/cake/tests/lib/reporter/cake_html_reporter.php b/cake/tests/lib/reporter/cake_html_reporter.php index 9c9cbbfdf..1e272209b 100644 --- a/cake/tests/lib/reporter/cake_html_reporter.php +++ b/cake/tests/lib/reporter/cake_html_reporter.php @@ -205,7 +205,7 @@ class CakeHtmlReporter extends CakeBaseReporter { $show = $this->_queryString($show); $query = $this->_queryString($query); - echo "

Run more tests | Show Passes | \n"; + echo "

Run more tests | Show Passes | \n"; echo " Analyze Code Coverage

\n"; }