Re: PHPUnit bugs/fixes
| From: | Sebastian Bergmann | Date: | Tue, 20 Aug 2002 08:01:05 +0000 |
| Subject: | Re: PHPUnit bugs/fixes | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-8521@lists.php.net to get a copy of this message | ||
Wolfram Kriesing wrote:
> the order of the keys is not the same
>
> ksort($expected);
> ksort($actual);
> serialize($expected) != serilaize($actual)
Although I find it at lease debatable that two arrays are to be
considered equal if the order of the keys is not the same, I commited
the above, among other tweaks, to PHPUnit_Assert.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/