mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Removing use of Set::filter(). Coupling the test suite to Set is not a good idea.
This commit is contained in:
parent
1d63d52d3c
commit
faafe5a0dc
1 changed files with 5 additions and 4 deletions
|
@ -32,6 +32,7 @@ class CakeHtmlReporter extends SimpleReporter {
|
|||
* Character set for the output of test reporting.
|
||||
*
|
||||
* @var string
|
||||
* @access protected
|
||||
*/
|
||||
var $_character_set;
|
||||
/**
|
||||
|
@ -153,7 +154,7 @@ class CakeHtmlReporter extends SimpleReporter {
|
|||
echo "<li class='fail'>\n";
|
||||
echo "<span>Failed</span>";
|
||||
echo "<div class='msg'>" . $this->_htmlEntities($message) . "</div>\n";
|
||||
$breadcrumb = Set::filter($this->getTestList());
|
||||
$breadcrumb = $this->getTestList();
|
||||
array_shift($breadcrumb);
|
||||
echo "<div>" . implode(" -> ", $breadcrumb) . "</div>\n";
|
||||
echo "</li>\n";
|
||||
|
@ -173,7 +174,7 @@ class CakeHtmlReporter extends SimpleReporter {
|
|||
if ($this->_show_passes) {
|
||||
echo "<li class='pass'>\n";
|
||||
echo "<span>Passed</span> ";
|
||||
$breadcrumb = Set::filter($this->getTestList());
|
||||
$breadcrumb = $this->getTestList();
|
||||
array_shift($breadcrumb);
|
||||
echo implode(" -> ", $breadcrumb);
|
||||
echo "<br />" . $this->_htmlEntities($message) . "\n";
|
||||
|
@ -192,7 +193,7 @@ class CakeHtmlReporter extends SimpleReporter {
|
|||
echo "<li class='error'>\n";
|
||||
echo "<span>Error</span>";
|
||||
echo "<div class='msg'>" . $this->_htmlEntities($message) . "</div>\n";
|
||||
$breadcrumb = Set::filter($this->getTestList());
|
||||
$breadcrumb = $this->getTestList();
|
||||
array_shift($breadcrumb);
|
||||
echo "<div>" . implode(" -> ", $breadcrumb) . "</div>\n";
|
||||
echo "</li>\n";
|
||||
|
@ -213,7 +214,7 @@ class CakeHtmlReporter extends SimpleReporter {
|
|||
'] in ['. $exception->getFile() .
|
||||
' line ' . $exception->getLine() . ']';
|
||||
echo "<div class='msg'>" . $this->_htmlEntities($message) . "</div>\n";
|
||||
$breadcrumb = Set::filter($this->getTestList());
|
||||
$breadcrumb = $this->getTestList();
|
||||
array_shift($breadcrumb);
|
||||
echo "<div>" . implode(" -> ", $breadcrumb) . "</div>\n";
|
||||
echo "</li>\n";
|
||||
|
|
Loading…
Add table
Reference in a new issue