cvs: pear /PHPUnit2/TextUI TestRunner.php
| From: | Sebastian Bergmann | Date: | Mon, 23 Jan 2006 07:37:33 +0000 |
| Subject: | cvs: pear /PHPUnit2/TextUI TestRunner.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-37708@lists.php.net to get a copy of this message | ||
sebastian Mon Jan 23 07:37:33 2006 UTC
Modified files:
/pear/PHPUnit2/TextUI TestRunner.php
Log:
Leftover.
http://cvs.php.net/viewcvs.cgi/pear/PHPUnit2/TextUI/TestRunner.php?r1=1.79&r2=1.80&diff_format=u
Index: pear/PHPUnit2/TextUI/TestRunner.php
diff -u pear/PHPUnit2/TextUI/TestRunner.php:1.79 pear/PHPUnit2/TextUI/TestRunner.php:1.80
--- pear/PHPUnit2/TextUI/TestRunner.php:1.79 Mon Jan 16 19:41:08 2006
+++ pear/PHPUnit2/TextUI/TestRunner.php Mon Jan 23 07:37:33 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.79 2006/01/16 19:41:08 sebastian Exp $
+ * @version CVS: $Id: TestRunner.php,v 1.80 2006/01/23 07:37:33 sebastian Exp $
* @link http://pear.php.net/package/PHPUnit2
* @since File available since Release 2.0.0
*/
@@ -181,14 +181,16 @@
$possibleOptions[] = 'coverage-text=';
}
- $options = PHPUnit2_Util_Getopt::getopt(
- $arguments,
- '',
- $possibleOptions
- );
+ try {
+ $options = PHPUnit2_Util_Getopt::getopt(
+ $arguments,
+ '',
+ $possibleOptions
+ );
+ }
- if (PEAR::isError($options)) {
- $this->showError($options->getMessage());
+ catch (RuntimeException $e) {
+ $this->showError($e->getMessage());
}
$test = isset($options[1][0]) ? $options[1][0] : FALSE;