cvs: pear /PHPUnit2/Util/Log Eclipse.php

From: Date: Fri, 17 Mar 2006 08:23:45 +0000
Subject: cvs: pear /PHPUnit2/Util/Log Eclipse.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39141@lists.php.net to get a copy of this message
sebastian Fri Mar 17 08:23:45 2006 UTC Modified files: /pear/PHPUnit2/Util/Log Eclipse.php Log: More sprintf(). http://cvs.php.net/viewcvs.cgi/pear/PHPUnit2/Util/Log/Eclipse.php?r1=1.3&r2=1.4&diff_format=u Index: pear/PHPUnit2/Util/Log/Eclipse.php diff -u pear/PHPUnit2/Util/Log/Eclipse.php:1.3 pear/PHPUnit2/Util/Log/Eclipse.php:1.4 --- pear/PHPUnit2/Util/Log/Eclipse.php:1.3 Fri Mar 17 07:20:19 2006 +++ pear/PHPUnit2/Util/Log/Eclipse.php Fri Mar 17 08:23:45 2006 @@ -41,7 +41,7 @@ * @author Sebastian Bergmann <sb@sebastian-bergmann.de> * @copyright 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de> * @license http://www.opensource.org/licenses/bsd-license.php BSD License - * @version CVS: $Id: Eclipse.php,v 1.3 2006/03/17 07:20:19 sebastian Exp $ + * @version CVS: $Id: Eclipse.php,v 1.4 2006/03/17 08:23:45 sebastian Exp $ * @link http://pear.php.net/package/PHPUnit2 * @since File available since Release 3.0.0 */ @@ -179,7 +179,14 @@ */ public function addError(PHPUnit2_Framework_Test $test, Exception $e) { - $this->writeCase('error', get_class($e) . ':' . $e->getMessage()); + $this->writeCase( + 'error', + sprintf( + '%s:%s', + get_class($e), + $e->getMessage() + ) + ); $this->currentTestCasePass = FALSE; }

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