cvs: pear /PHPUnit2/Framework TestResult.php /PHPUnit2/TextUI TestRunner.php

From: Date: Wed, 01 Mar 2006 13:10:33 +0000
Subject: cvs: pear /PHPUnit2/Framework TestResult.php /PHPUnit2/TextUI TestRunner.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38783@lists.php.net to get a copy of this message
sebastian Wed Mar 1 13:10:33 2006 UTC Modified files: /pear/PHPUnit2/Framework TestResult.php /pear/PHPUnit2/TextUI TestRunner.php Log: Cleanup TestListeners once they are no longer used. http://cvs.php.net/viewcvs.cgi/pear/PHPUnit2/Framework/TestResult.php?r1=1.46&r2=1.47&diff_format=u Index: pear/PHPUnit2/Framework/TestResult.php diff -u pear/PHPUnit2/Framework/TestResult.php:1.46 pear/PHPUnit2/Framework/TestResult.php:1.47 --- pear/PHPUnit2/Framework/TestResult.php:1.46 Mon Feb 27 10:16:25 2006 +++ pear/PHPUnit2/Framework/TestResult.php Wed Mar 1 13:10:32 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: TestResult.php,v 1.46 2006/02/27 10:16:25 sebastian Exp $ + * @version CVS: $Id: TestResult.php,v 1.47 2006/03/01 13:10:32 sebastian Exp $ * @link http://pear.php.net/package/PHPUnit2 * @since File available since Release 2.0.0 */ @@ -168,6 +168,17 @@ } /** + * Unregisters all TestListeners. + * + * @access public + * @since Method available since Release 3.0.0 + */ + public function removeListeners() + { + $this->listeners = array(); + } + + /** * Adds an error to the list of errors. * The passed in exception caused the error. * http://cvs.php.net/viewcvs.cgi/pear/PHPUnit2/TextUI/TestRunner.php?r1=1.85&r2=1.86&diff_format=u Index: pear/PHPUnit2/TextUI/TestRunner.php diff -u pear/PHPUnit2/TextUI/TestRunner.php:1.85 pear/PHPUnit2/TextUI/TestRunner.php:1.86 --- pear/PHPUnit2/TextUI/TestRunner.php:1.85 Tue Feb 28 20:41:07 2006 +++ pear/PHPUnit2/TextUI/TestRunner.php Wed Mar 1 13:10:32 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: TestRunner.php,v 1.85 2006/02/28 20:41:07 sebastian Exp $ + * @version CVS: $Id: TestRunner.php,v 1.86 2006/03/01 13:10:32 sebastian Exp $ * @link http://pear.php.net/package/PHPUnit2 * @since File available since Release 2.0.0 */ @@ -507,6 +507,8 @@ $suite->run($result); $timeElapsed = PHPUnit2_Util_Timer::stop(); + $result->removeListeners(); + $this->pause($wait); $this->printer->printResult($result, $timeElapsed);

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