cvs: pear /PHPUnit/Framework AssertionFailedError.php /PHPUnit/TextUI ResultPrinter.php

From: Date: Sun, 04 Jan 2004 10:43:28 +0000
Subject: cvs: pear /PHPUnit/Framework AssertionFailedError.php /PHPUnit/TextUI ResultPrinter.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-15334@lists.php.net to get a copy of this message
sebastian Sun Jan 4 05:43:28 2004 EDT Modified files: /pear/PHPUnit/Framework AssertionFailedError.php /pear/PHPUnit/TextUI ResultPrinter.php Log: Leftovers from __toString() reversal. Index: pear/PHPUnit/Framework/AssertionFailedError.php diff -u pear/PHPUnit/Framework/AssertionFailedError.php:1.8 pear/PHPUnit/Framework/AssertionFailedError.php:1.9 --- pear/PHPUnit/Framework/AssertionFailedError.php:1.8 Thu Jan 1 05:31:42 2004 +++ pear/PHPUnit/Framework/AssertionFailedError.php Sun Jan 4 05:43:27 2004 @@ -12,7 +12,7 @@ // | license@php.net so we can mail you a copy immediately. | // +------------------------------------------------------------------------+ // -// $Id: AssertionFailedError.php,v 1.8 2004/01/01 10:31:42 sebastian Exp $ +// $Id: AssertionFailedError.php,v 1.9 2004/01/04 10:43:27 sebastian Exp $ // /** @@ -22,6 +22,19 @@ * @author Sebastian Bergmann <sb@sebastian-bergmann.de> */ class PHPUnit_Framework_AssertionFailedError extends Exception { + // {{{ public function toString() + + /** + * Wrapper for getMessage() which is declared as final. + * + * @return string + * @access public + */ + public function toString() { + return $this->getMessage(); + } + + // }}} } /* Index: pear/PHPUnit/TextUI/ResultPrinter.php diff -u pear/PHPUnit/TextUI/ResultPrinter.php:1.17 pear/PHPUnit/TextUI/ResultPrinter.php:1.18 --- pear/PHPUnit/TextUI/ResultPrinter.php:1.17 Sun Jan 4 05:25:12 2004 +++ pear/PHPUnit/TextUI/ResultPrinter.php Sun Jan 4 05:43:28 2004 @@ -12,7 +12,7 @@ // | license@php.net so we can mail you a copy immediately. | // +------------------------------------------------------------------------+ // -// $Id: ResultPrinter.php,v 1.17 2004/01/04 10:25:12 sebastian Exp $ +// $Id: ResultPrinter.php,v 1.18 2004/01/04 10:43:28 sebastian Exp $ // require_once 'PHPUnit/Framework/TestFailure.php'; @@ -163,7 +163,7 @@ */ protected function printDefectTrace(PHPUnit_Framework_TestFailure $defect) { $this->write( - $defect->thrownException()->getMessage() . "\n" + $defect->thrownException()->toString() . "\n" ); $this->write(

« previous php.pear.cvs (#15334) next »