cvs: pear /PHPUnit PHPUnit_Assert.php
| From: | Sebastian Bergmann | Date: | Thu, 11 Jul 2002 15:01:08 +0000 |
| Subject: | cvs: pear /PHPUnit PHPUnit_Assert.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5033@lists.php.net to get a copy of this message | ||
sebastian Thu Jul 11 11:01:08 2002 EDT
Modified files:
/pear/PHPUnit PHPUnit_Assert.php
Log:
Add object support to PHPUnit_Assert::assertEquals().
Index: pear/PHPUnit/PHPUnit_Assert.php
diff -u pear/PHPUnit/PHPUnit_Assert.php:1.6 pear/PHPUnit/PHPUnit_Assert.php:1.7
--- pear/PHPUnit/PHPUnit_Assert.php:1.6 Thu Jul 11 08:10:16 2002
+++ pear/PHPUnit/PHPUnit_Assert.php Thu Jul 11 11:01:07 2002
@@ -17,7 +17,7 @@
// | M@rms <marms@marms.com> |
// +----------------------------------------------------------------------+
//
-// $Id: PHPUnit_Assert.php,v 1.6 2002/07/11 12:10:16 sebastian Exp $
+// $Id: PHPUnit_Assert.php,v 1.7 2002/07/11 15:01:07 sebastian Exp $
//
require_once 'PEAR.php';
@@ -58,7 +58,7 @@
}
}
- elseif (is_array($expected) && is_array($actual)) {
+ elseif (is_array($actual) || is_object($actual)) {
if (serialize($expected) != serialize($actual)) {
return $this->fail($message);
}