Home » Testing » PHPUnit » Bug #1169
assertEquals error
Details
| Submitted | 2004-04-09 09:42 UTC |
|---|---|
| From | minakov at bas-net dot by |
| Status | Closed |
| Package | PHPUnit |
| PHP Version | 4.3.4 |
| OS | winxp |
| Roadmaps | (Not assigned) |
Comments
[2004-04-09 09:42 UTC] minakov at bas-net dot by
Description:
------------
$Id: Assert.php,v 1.10.2.2 2003/06/21 05:05:14 sebastian Exp $
replace in line 85
else {
to
elseif (is_string($expected)) {
replace in line 94
if ($actual != $expected) {
to
if (strVal($actual) != strVal($expected)) {
Reproduce code:
---------------
PHPUnit_Assert::assertEquals('qwerty', 0);
Expected result:
----------------
FALSE
Actual result:
--------------
TRUE