cvs: pear(PHPUNIT_2_2) /PHPUnit2/TextUI ResultPrinter.php
| From: | Sebastian Bergmann | Date: | Mon, 28 Feb 2005 09:14:29 +0000 |
| Subject: | cvs: pear(PHPUNIT_2_2) /PHPUnit2/TextUI ResultPrinter.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-29922@lists.php.net to get a copy of this message | ||
sebastian Mon Feb 28 04:14:29 2005 EDT
Modified files: (Branch: PHPUNIT_2_2)
/pear/PHPUnit2/TextUI ResultPrinter.php
Log:
MFH: Implement RFE #3596.
http://cvs.php.net/diff.php/pear/PHPUnit2/TextUI/ResultPrinter.php?r1=1.12.2.2&r2=1.12.2.3&ty=u
Index: pear/PHPUnit2/TextUI/ResultPrinter.php
diff -u pear/PHPUnit2/TextUI/ResultPrinter.php:1.12.2.2
pear/PHPUnit2/TextUI/ResultPrinter.php:1.12.2.3
--- pear/PHPUnit2/TextUI/ResultPrinter.php:1.12.2.2 Fri Feb 4 05:01:56 2005
+++ pear/PHPUnit2/TextUI/ResultPrinter.php Mon Feb 28 04:14:29 2005
@@ -12,7 +12,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: ResultPrinter.php,v 1.12.2.2 2005/02/04 10:01:56 sebastian Exp $
+// $Id: ResultPrinter.php,v 1.12.2.3 2005/02/28 09:14:29 sebastian Exp $
//
require_once 'PHPUnit2/Framework/AssertionFailedError.php';
@@ -117,19 +117,12 @@
* @access protected
*/
protected function printDefectHeader(PHPUnit2_Framework_TestFailure $defect, $count) {
- $name = $defect->failedTest()->getName();
-
- if ($name === NULL) {
- $class = new ReflectionClass($defect->failedTest());
- $name = $class->getName();
- }
-
$this->write(
sprintf(
"%d) %s\n",
$count,
- $name
+ $defect->failedTest()->toString()
)
);
}