mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Removing CakeTestMenu as its been made obsolete.
Removing constant use from reporter.
This commit is contained in:
parent
28ad1ea1c2
commit
e061a53358
3 changed files with 1 additions and 62 deletions
|
@ -1,60 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* CakeTestMenu Generates HTML based menus for CakePHP's built in test suite.
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
|
||||
* 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';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
|
@ -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.
|
||||
|
|
|
@ -205,7 +205,7 @@ class CakeHtmlReporter extends CakeBaseReporter {
|
|||
$show = $this->_queryString($show);
|
||||
$query = $this->_queryString($query);
|
||||
|
||||
echo "<p><a href='" . $this->baseUrl() . $show . "'>Run more tests</a> | <a href='" . RUN_TEST_LINK . $query . "&show_passes=1'>Show Passes</a> | \n";
|
||||
echo "<p><a href='" . $this->baseUrl() . $show . "'>Run more tests</a> | <a href='" . $this->baseUrl() . $query . "&show_passes=1'>Show Passes</a> | \n";
|
||||
echo " <a href='" . $this->baseUrl() . $query . "&code_coverage=true'>Analyze Code Coverage</a></p>\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue