cvs: pear(ZEND_ENGINE_2) /PHPUnit ExceptionTestCase.php
| From: | Sebastian Bergmann | Date: | Sun, 23 Mar 2003 17:00:56 +0000 |
| Subject: | cvs: pear(ZEND_ENGINE_2) /PHPUnit ExceptionTestCase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-9587@lists.php.net to get a copy of this message | ||
sebastian Sun Mar 23 12:00:56 2003 EDT
Modified files: (Branch: ZEND_ENGINE_2)
/pear/PHPUnit ExceptionTestCase.php
Log:
-instanceof+is_a()
Index: pear/PHPUnit/ExceptionTestCase.php
diff -u pear/PHPUnit/ExceptionTestCase.php:1.1.2.2 pear/PHPUnit/ExceptionTestCase.php:1.1.2.3
--- pear/PHPUnit/ExceptionTestCase.php:1.1.2.2 Sun Mar 23 11:05:38 2003
+++ pear/PHPUnit/ExceptionTestCase.php Sun Mar 23 12:00:55 2003
@@ -12,7 +12,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: ExceptionTestCase.php,v 1.1.2.2 2003/03/23 16:05:38 sebastian Exp $
+// $Id: ExceptionTestCase.php,v 1.1.2.3 2003/03/23 17:00:55 sebastian Exp $
//
require_once 'PHPUnit/TestCase.php';
@@ -62,7 +62,7 @@
}
catch (Exception $e) {
- if ($e instanceof $this->fExpected) {
+ if (is_a($e, $this->fExpected)) {
return;
} else {
throw $e;