cvs: pear(ZEND_ENGINE_2) /PHPUnit/PHPUnit TestCase.php
| From: | Sebastian Bergmann | Date: | Wed, 15 Jan 2003 17:04:30 +0000 |
| Subject: | cvs: pear(ZEND_ENGINE_2) /PHPUnit/PHPUnit TestCase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-8277@lists.php.net to get a copy of this message | ||
sebastian Wed Jan 15 12:04:30 2003 EDT
Modified files: (Branch: ZEND_ENGINE_2)
/pear/PHPUnit/PHPUnit TestCase.php
Log:
As long as there is not yet a catch-any mechanism for exceptions in place, don't try {} to
catch() exceptions.
Index: pear/PHPUnit/PHPUnit/TestCase.php
diff -u pear/PHPUnit/PHPUnit/TestCase.php:1.2.2.10 pear/PHPUnit/PHPUnit/TestCase.php:1.2.2.11
--- pear/PHPUnit/PHPUnit/TestCase.php:1.2.2.10 Wed Dec 11 12:14:17 2002
+++ pear/PHPUnit/PHPUnit/TestCase.php Wed Jan 15 12:04:30 2003
@@ -12,7 +12,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: TestCase.php,v 1.2.2.10 2002/12/11 17:14:17 sebastian Exp $
+// $Id: TestCase.php,v 1.2.2.11 2003/01/15 17:04:30 sebastian Exp $
//
require_once 'PHPUnit/Assert.php';
@@ -145,15 +145,18 @@
* @access public
*/
public function runBare() {
- try {
+ // XXX: FIX ME: As long as there is not yet a catch-any
+ // mechanism for exceptions in place, don't
+ // try {} to catch() exceptions.
+ // try {
$this->setUp();
$this->runTest();
$this->tearDown();
- }
+ // }
- catch (Exception $e) {
- $this->result->addError($this, $e);
- }
+ // catch (Exception $e) {
+ // $this->result->addError($this, $e);
+ // }
}
// }}}